![]() |
ATLAS Offline Software
|
Implementation of 2 dimensional vector class. More...
#include <LocVec2D.h>
Public Member Functions | |
| LocVec2D (double x, double y) | |
| Constructor parsing the coordinates. | |
| LocVec2D (const LocVec2D &)=default | |
| Default copy & move constructors. | |
| LocVec2D (LocVec2D &&)=default | |
| LocVec2D ()=default | |
| ~LocVec2D ()=default | |
| double | x () const |
| Returns the x coordinate of the vector. | |
| double | y () const |
| Returns the y coordinate of the vector. | |
| void | set (const LocVec2D &vecvec) |
| Setter function using another vector. | |
| void | set (double x, double y) |
| Set x & y simultaenously. | |
| void | setX (double x) |
| Set only x. | |
| void | setY (double y) |
| Set only y. | |
| LocVec2D | operator+ (const LocVec2D &lv) const |
| Plus and minus operators. | |
| LocVec2D | operator- (const LocVec2D &lv) const |
| LocVec2D & | operator= (const LocVec2D &)=default |
| Default assignment operators (Equivalent to the setter x). | |
| LocVec2D & | operator= (LocVec2D &&)=default |
| LocVec2D & | operator+= (const LocVec2D &lv) |
| Incrementation operator. | |
| LocVec2D & | operator-= (const LocVec2D &lv) |
| double | operator* (const LocVec2D &lv) const |
| LocVec2D | operator* (double v) const |
| LocVec2D & | operator*= (double v) |
| LocVec2D & | operator/= (double v) |
| double | cross (const LocVec2D &lv) const |
| double | mag () const |
Private Attributes | |
| double | m_x {0} |
| double | m_y {0} |
Implementation of 2 dimensional vector class.
Definition at line 16 of file LocVec2D.h.
|
inline |
Constructor parsing the coordinates.
Definition at line 19 of file LocVec2D.h.
|
default |
Default copy & move constructors.
|
default |
|
default |
|
default |
Definition at line 87 of file LocVec2D.h.
|
inline |
Definition at line 89 of file LocVec2D.h.
Definition at line 68 of file LocVec2D.h.
|
inline |
Definition at line 70 of file LocVec2D.h.
|
inline |
Incrementation operator.
Definition at line 56 of file LocVec2D.h.
Definition at line 49 of file LocVec2D.h.
Definition at line 62 of file LocVec2D.h.
|
inline |
Default assignment operators (Equivalent to the setter x).
Setter function using another vector.
Definition at line 32 of file LocVec2D.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 92 of file LocVec2D.h.
|
private |
Definition at line 93 of file LocVec2D.h.