Data structure for normalised vector in three dimensions.
More...
#include <JVersor3D.hh>
Data structure for normalised vector in three dimensions.
Definition at line 23 of file JVersor3D.hh.
◆ JVersor3D() [1/2]
JGEOMETRY3D::JVersor3D::JVersor3D |
( |
| ) |
|
|
inline |
Default constructor.
This constructor yields a unit z-vector.
Definition at line 31 of file JVersor3D.hh.
◆ JVersor3D() [2/2]
JGEOMETRY3D::JVersor3D::JVersor3D |
( |
const double |
dx, |
|
|
const double |
dy, |
|
|
const double |
dz |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
dx | dx value |
dy | dy value |
dz | dz value |
Definition at line 45 of file JVersor3D.hh.
◆ negate()
JVersor3D& JGEOMETRY3D::JVersor3D::negate |
( |
| ) |
|
|
inline |
Negate versor.
- Returns
- this versor
Definition at line 61 of file JVersor3D.hh.
◆ equals()
bool JGEOMETRY3D::JVersor3D::equals |
( |
const JVersor3D & |
versor, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inline |
Check equality.
- Parameters
-
- Returns
- true if versors are equal; else false
Definition at line 77 of file JVersor3D.hh.
80 return (fabs(
getDX() - versor.
getDX()) <= precision &&
◆ getDX()
double JGEOMETRY3D::JVersor3D::getDX |
( |
| ) |
const |
|
inline |
Get x direction.
- Returns
- x direction
Definition at line 91 of file JVersor3D.hh.
◆ getDY()
double JGEOMETRY3D::JVersor3D::getDY |
( |
| ) |
const |
|
inline |
Get y direction.
- Returns
- y direction
Definition at line 102 of file JVersor3D.hh.
◆ getDZ()
double JGEOMETRY3D::JVersor3D::getDZ |
( |
| ) |
const |
|
inline |
Get z direction.
- Returns
- z direction
Definition at line 113 of file JVersor3D.hh.
◆ getTheta()
double JGEOMETRY3D::JVersor3D::getTheta |
( |
| ) |
const |
|
inline |
Get theta angle.
- Returns
- theta angle [rad]
Definition at line 124 of file JVersor3D.hh.
128 else if (
__dz < -1.0)
◆ getPhi()
double JGEOMETRY3D::JVersor3D::getPhi |
( |
| ) |
const |
|
inline |
Get phi angle.
- Returns
- phi angle [rad]
Definition at line 140 of file JVersor3D.hh.
◆ getDot()
double JGEOMETRY3D::JVersor3D::getDot |
( |
const JVersor3D & |
versor | ) |
const |
|
inline |
Get dot product.
- Parameters
-
- Returns
- dot product
Definition at line 152 of file JVersor3D.hh.
◆ normalise()
JVersor3D& JGEOMETRY3D::JVersor3D::normalise |
( |
| ) |
|
|
inline |
Normalise versor.
This operation may set the result to the unit z-vector.
- Returns
- this versor
Definition at line 167 of file JVersor3D.hh.
◆ mul()
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
◆ __dx
double JGEOMETRY3D::JVersor3D::__dx |
|
protected |
◆ __dy
double JGEOMETRY3D::JVersor3D::__dy |
|
protected |
◆ __dz
double JGEOMETRY3D::JVersor3D::__dz |
|
protected |
The documentation for this class was generated from the following file: