Jpp
master_rocky-40-g5f0272dcd
the software that should make you happy
|
Data structure for normalised vector in three dimensions. More...
#include <JVersor3D.hh>
Public Member Functions | |
JVersor3D () | |
Default constructor. More... | |
JVersor3D (const double dx, const double dy, const double dz) | |
Constructor. More... | |
JVersor3D & | negate () |
Negate versor. More... | |
bool | equals (const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
double | getDX () const |
Get x direction. More... | |
double | getDY () const |
Get y direction. More... | |
double | getDZ () const |
Get z direction. More... | |
double | getTheta () const |
Get theta angle. More... | |
double | getPhi () const |
Get phi angle. More... | |
double | getDot (const JVersor3D &versor) const |
Get dot product. More... | |
JVersor3D & | getCross (const JVersor3D &first, const JVersor3D &second) |
Get cross product. More... | |
JVersor3D & | normalise () |
Normalise versor. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Protected Attributes | |
double | __dx |
double | __dy |
double | __dz |
Data structure for normalised vector in three dimensions.
Definition at line 26 of file JVersor3D.hh.
|
inline |
Default constructor.
This constructor yields a unit z-vector.
Definition at line 34 of file JVersor3D.hh.
|
inline |
Constructor.
dx | dx value |
dy | dy value |
dz | dz value |
Definition at line 48 of file JVersor3D.hh.
|
inline |
|
inline |
Check equality.
versor | versor |
precision | precision |
Definition at line 81 of file JVersor3D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get cross product.
Note that this versor should not overlap with the first or second versor,
first | first versor |
second | second versor |
Definition at line 173 of file JVersor3D.hh.
|
inline |
Normalise versor.
This operation may set the result to the unit z-vector.
Definition at line 192 of file JVersor3D.hh.
|
inlineinherited |
|
protected |
Definition at line 206 of file JVersor3D.hh.
|
protected |
Definition at line 207 of file JVersor3D.hh.
|
protected |
Definition at line 208 of file JVersor3D.hh.