|
Jpp
|
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 & | normalise () |
| Normalise versor. More... | |
| JVersor3D & | mul (const JNullType &object) |
| Multiply with object. More... | |
Protected Attributes | |
| double | __dx |
| double | __dy |
| double | __dz |
Data structure for normalised vector in three dimensions.
Definition at line 23 of file JVersor3D.hh.
|
inline |
Default constructor.
This constructor yields a unit z-vector.
Definition at line 31 of file JVersor3D.hh.
|
inline |
Constructor.
| dx | dx value |
| dy | dy value |
| dz | dz value |
Definition at line 45 of file JVersor3D.hh.
|
inline |
|
inline |
Check equality.
| versor | versor |
| precision | precision |
Definition at line 78 of file JVersor3D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get dot product.
| versor | versor |
Definition at line 153 of file JVersor3D.hh.
|
inline |
Normalise versor.
This operation may set the result to the unit z-vector.
Definition at line 168 of file JVersor3D.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
protected |
Definition at line 182 of file JVersor3D.hh.
|
protected |
Definition at line 183 of file JVersor3D.hh.
|
protected |
Definition at line 184 of file JVersor3D.hh.
1.8.5