Jpp
17.2.1-pre0
the software that should make you happy
|
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... | |
JFirst_t & | 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 39 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
Constructor.
dx | direction cosine dx/dz |
dy | direction cosine dy/dz |
Definition at line 69 of file JVersor3Z.hh.
|
inline |
Get direction.
Definition at line 81 of file JVersor3Z.hh.
|
inline |
Get direction.
Definition at line 92 of file JVersor3Z.hh.
|
inline |
Set direction.
direction | direction |
Definition at line 103 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
Type conversion operator.
Definition at line 136 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Addition operator.
value | versor |
Definition at line 200 of file JVersor3Z.hh.
Subtraction operator.
value | versor |
Definition at line 215 of file JVersor3Z.hh.
|
inline |
Multiplication operator.
value | multiplication factor |
Definition at line 230 of file JVersor3Z.hh.
|
inline |
Division operator.
value | multiplication factor |
Definition at line 245 of file JVersor3Z.hh.
|
inline |
Check equality.
versor | versor |
precision | precision |
Definition at line 261 of file JVersor3Z.hh.
|
inline |
Get dot product.
dir | direction |
Definition at line 275 of file JVersor3Z.hh.
|
inline |
Get dot product.
angle | angle |
Definition at line 290 of file JVersor3Z.hh.
|
inline |
Get dot product.
pos | position |
Definition at line 305 of file JVersor3Z.hh.
|
inline |
Get dot product.
dir | direction |
Definition at line 320 of file JVersor3Z.hh.
|
inlineinherited |
|
friend |
Read versor from input.
in | input stream |
versor | versor |
Definition at line 336 of file JVersor3Z.hh.
|
friend |
Write versor to output.
out | output stream |
versor | versor |
Definition at line 349 of file JVersor3Z.hh.
Read versor from input.
in | reader |
versor | versor |
Definition at line 364 of file JVersor3Z.hh.
Write versor to output.
out | writer |
versor | versor |
Definition at line 377 of file JVersor3Z.hh.
|
protected |
Definition at line 383 of file JVersor3Z.hh.
|
protected |
Definition at line 384 of file JVersor3Z.hh.