|
Jpp 19.3.0-rc.3
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. | |
| JVersor3Z (const JVersor2D &dir) | |
| Constructor. | |
| JVersor3Z (const double dx, const double dy) | |
| Constructor. | |
| const JVersor3Z & | getDirection () const |
| Get direction. | |
| JVersor3Z & | getDirection () |
| Get direction. | |
| void | setDirection (const JVersor3Z &direction) |
| Set direction. | |
| operator JAngle3D () const | |
| Get angle. | |
| operator JVector3D () const | |
| Type conversion operator. | |
| operator JVersor3D () const | |
| Type conversion operator. | |
| double | getDX () const |
| Get x direction. | |
| double | getDY () const |
| Get y direction. | |
| double | getDZ () const |
| Get z direction. | |
| JVersor3Z & | negate () |
| Prefix unary minus. | |
| JVersor3Z & | add (const JVersor3Z &value) |
| Addition operator. | |
| JVersor3Z & | sub (const JVersor3Z &value) |
| Subtraction operator. | |
| JVersor3Z & | mul (const double value) |
| Multiplication operator. | |
| JVersor3Z & | div (const double value) |
| Division operator. | |
| bool | equals (const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const |
| Check equality. | |
| double | getDot (const JVersor3Z &dir) const |
| Get dot product. | |
| double | getDot (const JAngle3D &angle) const |
| Get dot product. | |
| double | getDot (const JVector3D &pos) const |
| Get dot product. | |
| double | getDot (const JVersor3D &dir) const |
| Get dot product. | |
| JFirst_t & | mul (const JSecond_t &object) |
| Multiply with object. | |
Protected Attributes | |
| double | __dx |
| double | __dy |
Friends | |
| std::istream & | operator>> (std::istream &in, JVersor3Z &versor) |
| Read versor from input. | |
| std::ostream & | operator<< (std::ostream &out, const JVersor3Z &versor) |
| Write versor to output. | |
| JReader & | operator>> (JReader &in, JVersor3Z &versor) |
| Read versor from input. | |
| JWriter & | operator<< (JWriter &out, const JVersor3Z &versor) |
| Write versor to output. | |
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 |
Default constructor.
Definition at line 46 of file JVersor3Z.hh.
|
inline |
|
inline |
Constructor.
| dx | direction cosine dx/dz |
| dy | direction cosine dy/dz |
Definition at line 69 of file JVersor3Z.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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.