Public Types |
typedef T | Value |
typedef T & | Reference |
typedef T const & | ConstReference |
typedef T * | Pointer |
typedef T const * | ConstPointer |
typedef T | value_type |
typedef T & | reference |
typedef T const & | const_reference |
typedef T * | pointer |
typedef T const * | const_pointer |
typedef void | iterator_category |
typedef void | difference_type |
Public Member Functions |
| sphericalVector () |
| Default constructor.
|
| sphericalVector (sphericalVector const &v) |
| Copy constructor.
|
template<typename U > |
| sphericalVector (sphericalVector< U > const &v) |
| Copy constructor.
|
| sphericalVector (Value const &phi_a, Value const &theta_a, Value const &radius_a) |
| Triple value constructor.
|
template<typename U > |
| sphericalVector (U const *p) |
| Pointer to contiguous values constructor.
|
| ~sphericalVector () |
| Destructor.
|
sphericalVector & | operator= (sphericalVector const &v) |
| Copy assignment.
|
template<typename U > |
sphericalVector & | operator= (sphericalVector< U > const &v) |
| Copy assignment.
|
template<typename U > |
sphericalVector & | operator= (U const *p) |
| Assignment from pointer to contiguous values.
|
template<typename U > |
sphericalVector & | operator+= (sphericalVector< U > const &v) |
| += xyzVector
|
template<typename U > |
sphericalVector & | operator-= (sphericalVector< U > const &v) |
| -= xyzVector
|
template<typename U > |
sphericalVector & | scaled_assign (Value const &t, sphericalVector< U > const &v) |
| Assign Value * xyzVector.
|
template<typename U > |
sphericalVector & | scaled_add (Value const &t, sphericalVector< U > const &v) |
| Add Value * xyzVector.
|
template<typename U > |
sphericalVector & | scaled_sub (Value const &t, sphericalVector< U > const &v) |
| Subtract Value * xyzVector.
|
sphericalVector & | operator= (Value const &t) |
| = Value
|
sphericalVector & | operator+= (Value const &t) |
| += Value
|
sphericalVector & | operator-= (Value const &t) |
| -= Value
|
sphericalVector & | operator*= (Value const &t) |
| *= Value
|
sphericalVector & | operator/= (Value const &t) |
| /= Value
|
sphericalVector & | assign (Value const &phi_a, Value const &theta_a, Value const &radius_a) |
| Triple value assignment.
|
sphericalVector & | clear () |
| Clear.
|
sphericalVector & | zero () |
| Zero.
|
sphericalVector & | min (sphericalVector const &v) |
| Set minimum coordinates wrt another xyzVector.
|
sphericalVector & | max (sphericalVector const &v) |
| Set maximum coordinates wrt another xyzVector.
|
Value const & | phi () const |
| Value x const.
|
Value & | phi () |
| Value x.
|
Value const & | theta () const |
| Value y const.
|
Value & | theta () |
| Value y.
|
Value const & | radius () const |
| Value z const.
|
Value & | radius () |
| Value z.
|
void | phi (Value const &phi_a) |
| x assignment
|
void | theta (Value const &theta_a) |
| y assignment
|
void | radius (Value const &radius_a) |
| z assignment
|
Friends |
sphericalVector | operator+ (sphericalVector const &a, sphericalVector const &b) |
| sphericalVector + sphericalVector
|
sphericalVector | operator+ (sphericalVector const &v, Value const &t) |
| sphericalVector + Value
|
sphericalVector | operator+ (Value const &t, sphericalVector const &v) |
| Value + sphericalVector.
|
sphericalVector | operator- (sphericalVector const &a, sphericalVector const &b) |
| sphericalVector - sphericalVector
|
sphericalVector | operator- (sphericalVector const &v, Value const &t) |
| sphericalVector - Value
|
sphericalVector | operator- (Value const &t, sphericalVector const &v) |
| Value - sphericalVector.
|
sphericalVector | operator* (sphericalVector const &v, Value const &t) |
| sphericalVector * Value
|
sphericalVector | operator* (Value const &t, sphericalVector const &v) |
| Value * xyzVector.
|
sphericalVector | operator/ (sphericalVector const &v, Value const &t) |
| xyzVector / Value
|
void | add (sphericalVector const &a, sphericalVector const &b, sphericalVector &r) |
| Add: xyzVector + xyzVector.
|
void | add (sphericalVector const &v, Value const &t, sphericalVector &r) |
| Add: xyzVector + Value.
|
void | add (Value const &t, sphericalVector const &v, sphericalVector &r) |
| Add: Value + xyzVector.
|
void | subtract (sphericalVector const &a, sphericalVector const &b, sphericalVector &r) |
| Subtract: xyzVector - xyzVector.
|
void | subtract (sphericalVector const &v, Value const &t, sphericalVector &r) |
| Subtract: xyzVector - Value.
|
void | subtract (Value const &t, sphericalVector const &v, sphericalVector &r) |
| Subtract: Value - sphericalVector.
|
void | multiply (sphericalVector const &v, Value const &t, sphericalVector &r) |
| Multiply: xyzVector * Value.
|
void | multiply (Value const &t, sphericalVector const &v, sphericalVector &r) |
| Multiply: Value * xyzVector.
|
void | divide (sphericalVector const &v, Value const &t, sphericalVector &r) |
| Divide: xyzVector / Value.
|
sphericalVector | min (sphericalVector const &a, sphericalVector const &b) |
| xyzVector with min coordinates of two xyzVectors
|
sphericalVector | max (sphericalVector const &a, sphericalVector const &b) |
| sphericalVector with max coordinates of two sphericalVector
|
bool | operator== (sphericalVector const &a, sphericalVector const &b) |
| sphericalVector == sphericalVector
|
bool | operator!= (sphericalVector const &a, sphericalVector const &b) |
| sphericalVector != sphericalVector
|
template<typename T>
class numeric::sphericalVector< T >
sphericalVector: Fast spherical-coordinate numeric vector