|
| | Position () |
| | Default constructor, initializing all coordinates to zero.
|
| |
| | Position (const T &, const T &) |
| | 2D Constructor.
|
| |
| | Position (const T &, const T &, const T &) |
| | 3D Constructor.
|
| |
| | Position (const T *const y) |
| | Constructor initializing a Position from an array.
|
| |
| | Position (const std::vector< T > &y) |
| | Constructor initializing a Position from a std::vector.
|
| |
| | Position (const Position &other) |
| |
| template<class U > |
| | Position (const Position< D, U > &other) |
| |
| | Position (Position &&other) |
| | Move constructor.
|
| |
| Position & | operator= (const Position &other)=default |
| | Assignment constructor.
|
| |
| Position & | operator= (const std::vector< T > &y) |
| |
| Position & | operator= (Position &&other)=default |
| | Move assignment constructor.
|
| |
| T & | operator[] (int i) |
| |
| const T & | operator[] (int i) const |
| |
| const std::vector< T > | get_vector () const |
| |
| void | get_vector (std::vector< T > &vector) const |
| |
| template<class OT > |
| Position | operator+ (const Position< D, OT > &other) const |
| | Elementwise addition.
|
| |
| template<class OT > |
| Position | operator- (const Position< D, OT > &other) const |
| | Elementwise subtraction.
|
| |
| Position | operator- () const |
| | Unary minus.
|
| |
| template<class OT > |
| Position | operator* (const Position< D, OT > &other) const |
| | Elementwise multiplication.
|
| |
| template<class OT > |
| Position | operator/ (const Position< D, OT > &other) const |
| | Elementwise division.
|
| |
| Position | operator+ (const T &) const |
| | Elementwise addition with scalar.
|
| |
| Position | operator- (const T &) const |
| | Elementwise subtraction with scalar.
|
| |
| Position | operator* (const T &) const |
| | Multiplication with scalar.
|
| |
| Position | operator/ (const T &) const |
| | Division with scalar.
|
| |
| template<class OT > |
| Position & | operator+= (const Position< D, OT > &) |
| | In-place elementwise addition.
|
| |
| template<class OT > |
| Position & | operator-= (const Position< D, OT > &) |
| | In-place elementwise subtraction.
|
| |
| template<class OT > |
| Position & | operator*= (const Position< D, OT > &) |
| | In-place elementwise multiplication.
|
| |
| template<class OT > |
| Position & | operator/= (const Position< D, OT > &) |
| | In-place elementwise division.
|
| |
| Position & | operator+= (const T &) |
| | In-place elementwise addition with scalar.
|
| |
| Position & | operator-= (const T &) |
| | In-place elementwise subtraction with scalar.
|
| |
| Position & | operator*= (const T &) |
| | In-place multiplication by scalar.
|
| |
| Position & | operator/= (const T &) |
| | In-place elementwise division.
|
| |
| bool | operator== (const Position &y) const |
| |
| bool | operator!= (const Position &y) const |
| |
| bool | operator< (const Position &y) const |
| |
| bool | operator> (const Position &y) const |
| |
| bool | operator<= (const Position &y) const |
| |
| bool | operator>= (const Position &y) const |
| |
| T | length () const |
| | Length of Position vector.
|
| |
| | operator std::string () const |
| |
| void | print (std::ostream &out, char sep=' ') const |
| | Print position to output stream.
|
| |
| template<class OT > |
| Position< D, T > | operator+ (const Position< D, OT > &other) const |
| |
| template<class OT > |
| Position< D, T > | operator- (const Position< D, OT > &other) const |
| |
| template<class OT > |
| Position< D, T > | operator* (const Position< D, OT > &other) const |
| |
| template<class OT > |
| Position< D, T > | operator/ (const Position< D, OT > &other) const |
| |
| template<class OT > |
| Position< D, T > & | operator+= (const Position< D, OT > &other) |
| |
| template<class OT > |
| Position< D, T > & | operator-= (const Position< D, OT > &other) |
| |
| template<class OT > |
| Position< D, T > & | operator*= (const Position< D, OT > &other) |
| |
| template<class OT > |
| Position< D, T > & | operator/= (const Position< D, OT > &other) |
| |