|
Jpp
17.1.0
the software that should make you happy
|
Data structure for direction in two dimensions. More...
#include <JDirection2D.hh>
Public Member Functions | |
| JDirection2D () | |
| Default constructor. More... | |
| JDirection2D (const JVersor2D &dir) | |
| Constructor. More... | |
| JDirection2D (const JAngle2D &angle) | |
| Constructor. More... | |
| JDirection2D (const JVector2D &pos) | |
| Constructor. More... | |
| JDirection2D (const double dx, const double dy) | |
| Constructor. More... | |
| const JDirection2D & | getDirection () const |
| Get direction. More... | |
| JDirection2D & | getDirection () |
| Get direction. More... | |
| void | setDirection (const JDirection2D &dir) |
| Set direction. More... | |
| operator JAngle2D () const | |
| Type conversion operator. More... | |
| operator JVector2D () const | |
| Type conversion operator. More... | |
| JDirection2D & | transform (const JMatrix2D &T) |
| Transform. More... | |
| JDirection2D & | rotate (const JRotation2D &R) |
| Rotate. More... | |
| JDirection2D & | rotate_back (const JRotation2D &R) |
| Rotate back. More... | |
| double | getDot (const JAngle2D &angle) const |
| Get dot product. More... | |
| double | getDot (const JVector2D &pos) const |
| Get dot product. More... | |
| double | getPerpDot (const JAngle2D &angle) const |
| Get perpendicular dot product. More... | |
| double | getPerpDot (const JVector2D &pos) const |
| Get perpendicular dot product. More... | |
| double | getDX () const |
| Get x direction. More... | |
| double | getDY () const |
| Get y direction. More... | |
| double | getPhi () const |
| Get phi angle. More... | |
| JVersor2D & | negate () |
| Negate versor. More... | |
| bool | equals (const JVersor2D &versor, const double precision=std::numeric_limits< double >::min()) const |
| Check equality. More... | |
| double | getDot (const JVersor2D &versor) const |
| Get dot product. More... | |
| double | getPerpDot (const JVersor2D &versor) const |
| Get perpendicular dot product. More... | |
| JVersor2D & | normalise () |
| Normalise versor. More... | |
Protected Attributes | |
| double | __dx |
| double | __dy |
Friends | |
| std::istream & | operator>> (std::istream &in, JDirection2D &direction) |
| Read direction from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JDirection2D &direction) |
| Write direction to output. More... | |
| JReader & | operator>> (JReader &in, JDirection2D &direction) |
| Read direction from input. More... | |
| JWriter & | operator<< (JWriter &out, const JDirection2D &direction) |
| Write direction to output. More... | |
Data structure for direction in two dimensions.
Definition at line 31 of file JDirection2D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get direction.
Definition at line 95 of file JDirection2D.hh.
|
inline |
Get direction.
Definition at line 106 of file JDirection2D.hh.
|
inline |
Set direction.
| dir | direction |
Definition at line 117 of file JDirection2D.hh.
|
inline |
|
inline |
|
inline |
Transform.
| T | matrix |
Definition at line 151 of file JDirection2D.hh.
|
inline |
Rotate.
| R | rotation matrix |
Definition at line 167 of file JDirection2D.hh.
|
inline |
Rotate back.
| R | rotation matrix |
Definition at line 183 of file JDirection2D.hh.
|
inline |
Get dot product.
| angle | angle |
Definition at line 199 of file JDirection2D.hh.
|
inline |
Get dot product.
| pos | position |
Definition at line 213 of file JDirection2D.hh.
|
inline |
Get perpendicular dot product.
| angle | angle |
Definition at line 227 of file JDirection2D.hh.
|
inline |
Get perpendicular dot product.
| pos | position |
Definition at line 241 of file JDirection2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Check equality.
| versor | versor |
| precision | precision |
Definition at line 102 of file JVersor2D.hh.
|
inlineinherited |
Get dot product.
| versor | versor |
Definition at line 116 of file JVersor2D.hh.
|
inlineinherited |
Get perpendicular dot product.
| versor | versor |
Definition at line 130 of file JVersor2D.hh.
|
inlineinherited |
Normalise versor.
This operation may set the result to the unit y-vector.
Definition at line 144 of file JVersor2D.hh.
|
friend |
Read direction from input.
| in | input stream |
| direction | direction |
Definition at line 256 of file JDirection2D.hh.
|
friend |
Write direction to output.
| out | output stream |
| direction | direction |
Definition at line 271 of file JDirection2D.hh.
|
friend |
Read direction from input.
| in | reader |
| direction | direction |
Definition at line 289 of file JDirection2D.hh.
|
friend |
Write direction to output.
| out | writer |
| direction | direction |
Definition at line 305 of file JDirection2D.hh.
|
protectedinherited |
Definition at line 160 of file JVersor2D.hh.
|
protectedinherited |
Definition at line 161 of file JVersor2D.hh.
1.8.5