Jpp
|
Data structure for normalised vector in positive z-direction. More...
#include <JVersor3Z.hh>
Public Member Functions | |
JVersor3Z () | |
Default constructor. More... | |
JVersor3Z (const JVersor2D &dir) | |
Constructor. More... | |
JVersor3Z (const double dx, const double dy) | |
Constructor. More... | |
const JVersor3Z & | getDirection () const |
Get direction. More... | |
JVersor3Z & | getDirection () |
Get direction. More... | |
void | setDirection (const JVersor3Z &direction) |
Set direction. More... | |
operator JAngle3D () const | |
Get angle. More... | |
operator JVector3D () const | |
Type conversion operator. More... | |
operator JVersor3D () const | |
Type conversion operator. More... | |
double | getDX () const |
Get x direction. More... | |
double | getDY () const |
Get y direction. More... | |
double | getDZ () const |
Get z direction. More... | |
JVersor3Z & | negate () |
Prefix unary minus. More... | |
JVersor3Z & | add (const JVersor3Z &value) |
Addition operator. More... | |
JVersor3Z & | sub (const JVersor3Z &value) |
Subtraction operator. More... | |
JVersor3Z & | mul (const double value) |
Multiplication operator. More... | |
JVersor3Z & | div (const double value) |
Division operator. More... | |
bool | equals (const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
double | getDot (const JVersor3Z &dir) const |
Get dot product. More... | |
double | getDot (const JAngle3D &angle) const |
Get dot product. More... | |
double | getDot (const JVector3D &pos) const |
Get dot product. More... | |
double | getDot (const JVersor3D &dir) const |
Get dot product. More... | |
JVersor3Z & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Protected Attributes | |
double | __dx |
double | __dy |
Friends | |
std::istream & | operator>> (std::istream &in, JVersor3Z &versor) |
Read versor from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JVersor3Z &versor) |
Write versor to output. More... | |
JReader & | operator>> (JReader &in, JVersor3Z &versor) |
Read versor from input. More... | |
JWriter & | operator<< (JWriter &out, const JVersor3Z &versor) |
Write versor to output. More... | |
Data structure for normalised vector in positive z-direction.
The member methods getDX() and getDY() refer to the corresponding direction cosines. Note that the direction cosines may have any value. The method getDZ() will simply return 0 if the sum of the squares of the direction cosines is larger than 1.
Definition at line 37 of file JVersor3Z.hh.
|
inline |
Default constructor.
Definition at line 44 of file JVersor3Z.hh.
|
inline |
|
inline |
Constructor.
dx | direction cosine dx/dz |
dy | direction cosine dy/dz |
Definition at line 67 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Multiplication operator.
value | multiplication factor |
Definition at line 228 of file JVersor3Z.hh.
|
inline |
Division operator.
value | multiplication factor |
Definition at line 243 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
friend |
Read versor from input.
in | input stream |
versor | versor |
Definition at line 333 of file JVersor3Z.hh.
|
friend |
Write versor to output.
out | output stream |
versor | versor |
Definition at line 346 of file JVersor3Z.hh.
Read versor from input.
in | reader |
versor | versor |
Definition at line 359 of file JVersor3Z.hh.
Write versor to output.
out | writer |
versor | versor |
Definition at line 372 of file JVersor3Z.hh.
|
protected |
Definition at line 378 of file JVersor3Z.hh.
|
protected |
Definition at line 379 of file JVersor3Z.hh.