Jpp
|
Data structure for direction in three dimensions. More...
#include <JDirection3D.hh>
Public Member Functions | |
JDirection3D () | |
Default constructor. More... | |
JDirection3D (const JVersor3D &dir) | |
Constructor. More... | |
JDirection3D (const JAngle3D &angle) | |
Constructor. More... | |
JDirection3D (const JVector3D &pos) | |
Constructor. More... | |
JDirection3D (const JVersor3Z &dir) | |
Constructor. More... | |
JDirection3D (const double dx, const double dy, const double dz) | |
Constructor. More... | |
const JDirection3D & | getDirection () const |
Get direction. More... | |
JDirection3D & | getDirection () |
Get direction. More... | |
void | setDirection (const JDirection3D &dir) |
Set direction. More... | |
operator JAngle3D () const | |
Type conversion operator. More... | |
operator JVector3D () const | |
Type conversion operator. More... | |
JDirection3D & | transform (const JMatrix3D &T) |
Transform. More... | |
JDirection3D & | rotate (const JRotation3D &R) |
Rotate. More... | |
JDirection3D & | rotate_back (const JRotation3D &R) |
Rotate back. More... | |
JDirection3D & | rotate (const JRotation3X &R) |
Rotate around X-axis. More... | |
JDirection3D & | rotate_back (const JRotation3X &R) |
Rotate back around X-axis. More... | |
JDirection3D & | rotate (const JRotation3Y &R) |
Rotate around Y-axis. More... | |
JDirection3D & | rotate_back (const JRotation3Y &R) |
Rotate back around Y-axis. More... | |
JDirection3D & | rotate (const JRotation3Z &R) |
Rotate around Z-axis. More... | |
JDirection3D & | rotate_back (const JRotation3Z &R) |
Rotate back around Z-axis. More... | |
JDirection3D & | rotate (const JQuaternion3D &Q) |
Rotate. More... | |
double | getDot (const JAngle3D &angle) const |
Get dot product. More... | |
double | getDot (const JVector3D &pos) const |
Get dot product. More... | |
double | getDot (const JVersor3Z &dir) const |
Get dot product. More... | |
JVersor3D & | negate () |
Negate versor. More... | |
bool | equals (const JVersor3D &versor) 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 |
Friends | |
std::istream & | operator>> (std::istream &in, JDirection3D &direction) |
Read direction from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JDirection3D &direction) |
Write direction to output. More... | |
JReader & | operator>> (JReader &in, JDirection3D &direction) |
Read direction from input. More... | |
JWriter & | operator<< (JWriter &out, const JDirection3D &direction) |
Write direction to output. More... | |
Data structure for direction in three dimensions.
Definition at line 32 of file JDirection3D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Constructor.
dx | dx value |
dy | dy value |
dz | dz value |
Definition at line 94 of file JDirection3D.hh.
|
inline |
Get direction.
Definition at line 106 of file JDirection3D.hh.
|
inline |
Get direction.
Definition at line 117 of file JDirection3D.hh.
|
inline |
Set direction.
dir | direction |
Definition at line 128 of file JDirection3D.hh.
|
inline |
|
inline |
|
inline |
Transform.
T | matrix |
Definition at line 161 of file JDirection3D.hh.
|
inline |
Rotate.
R | rotation matrix |
Definition at line 177 of file JDirection3D.hh.
|
inline |
Rotate back.
R | rotation matrix |
Definition at line 193 of file JDirection3D.hh.
|
inline |
Rotate around X-axis.
R | rotation matrix |
Definition at line 209 of file JDirection3D.hh.
|
inline |
Rotate back around X-axis.
R | rotation matrix |
Definition at line 225 of file JDirection3D.hh.
|
inline |
Rotate around Y-axis.
R | rotation matrix |
Definition at line 241 of file JDirection3D.hh.
|
inline |
Rotate back around Y-axis.
R | rotation matrix |
Definition at line 257 of file JDirection3D.hh.
|
inline |
Rotate around Z-axis.
R | rotation matrix |
Definition at line 273 of file JDirection3D.hh.
|
inline |
Rotate back around Z-axis.
R | rotation matrix |
Definition at line 289 of file JDirection3D.hh.
|
inline |
Rotate.
Q | quaternion |
Definition at line 305 of file JDirection3D.hh.
|
inline |
Get dot product.
angle | angle |
Definition at line 324 of file JDirection3D.hh.
|
inline |
Get dot product.
pos | position |
Definition at line 339 of file JDirection3D.hh.
|
inline |
Get dot product.
dir | direction |
Definition at line 354 of file JDirection3D.hh.
|
inlineinherited |
|
inlineinherited |
Check equality.
versor | versor |
Definition at line 77 of file JVersor3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get dot product.
versor | versor |
Definition at line 151 of file JVersor3D.hh.
|
inlineinherited |
Normalise versor.
This operation may set the result to the unit z-vector.
Definition at line 166 of file JVersor3D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
friend |
Read direction from input.
in | input stream |
direction | direction |
Definition at line 370 of file JDirection3D.hh.
|
friend |
Write direction to output.
out | output stream |
direction | direction |
Definition at line 385 of file JDirection3D.hh.
|
friend |
Read direction from input.
in | reader |
direction | direction |
Definition at line 400 of file JDirection3D.hh.
|
friend |
Write direction to output.
out | writer |
direction | direction |
Definition at line 413 of file JDirection3D.hh.
|
protectedinherited |
Definition at line 180 of file JVersor3D.hh.
|
protectedinherited |
Definition at line 181 of file JVersor3D.hh.
|
protectedinherited |
Definition at line 182 of file JVersor3D.hh.