|
Jpp
15.0.0-rc.2
the software that should make you happy
|
Data structure for normalised vector in two dimensions. More...
#include <JVersor2D.hh>
Public Member Functions | |
| JVersor2D () | |
| Default constructor. More... | |
| JVersor2D (const double dx, const double dy) | |
| Constructor. More... | |
| double | getDX () const |
| Get x direction. More... | |
| double | getDY () const |
| Get y direction. More... | |
| double | getPhi () const |
| Get phi angle. More... | |
| JVersor2D & | negate () |
| Negate versor. More... | |
| bool | equals (const JVersor2D &versor, const double precision=std::numeric_limits< double >::min()) const |
| Check equality. More... | |
| double | getDot (const JVersor2D &versor) const |
| Get dot product. More... | |
| double | getPerpDot (const JVersor2D &versor) const |
| Get perpendicular dot product. More... | |
| JVersor2D & | normalise () |
| Normalise versor. More... | |
Protected Attributes | |
| double | __dx |
| double | __dy |
Data structure for normalised vector in two dimensions.
Definition at line 20 of file JVersor2D.hh.
|
inline |
Default constructor.
This constructor yields a unit y-vector.
Definition at line 27 of file JVersor2D.hh.
|
inline |
Constructor.
| dx | dx value |
| dy | dy value |
Definition at line 39 of file JVersor2D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check equality.
| versor | versor |
| precision | precision |
Definition at line 102 of file JVersor2D.hh.
|
inline |
Get dot product.
| versor | versor |
Definition at line 116 of file JVersor2D.hh.
|
inline |
Get perpendicular dot product.
| versor | versor |
Definition at line 130 of file JVersor2D.hh.
|
inline |
Normalise versor.
This operation may set the result to the unit y-vector.
Definition at line 144 of file JVersor2D.hh.
|
protected |
Definition at line 160 of file JVersor2D.hh.
|
protected |
Definition at line 161 of file JVersor2D.hh.
1.8.5