|
Jpp
|
Data structure for angle in two dimensions. More...
#include <JAngle2D.hh>
Public Member Functions | |
| JAngle2D () | |
| Default constructor. More... | |
| JAngle2D (const double phi) | |
| Constructor. More... | |
| JAngle2D (const double x, const double y) | |
| Constructor. More... | |
| double | getPhi () const |
| Get phi angle. More... | |
| double | getDX () const |
| Get x direction. More... | |
| double | getDY () const |
| Get y direction. More... | |
| JAngle2D & | negate () |
| Negate angle. More... | |
| JAngle2D & | add (const JAngle2D &angle) |
| Add angle. More... | |
| JAngle2D & | sub (const JAngle2D &angle) |
| Subtract angle. More... | |
| JAngle2D & | mul (const double factor) |
| Scale angle. More... | |
| JAngle2D & | div (const double factor) |
| Scale angle. More... | |
| bool | equals (const JAngle2D &angle) const |
| Check equality. More... | |
| double | getDot (const JAngle2D &angle) const |
| Get dot product. More... | |
| JAngle2D & | normalise () |
| Normalise angle. More... | |
| JAngle2D & | mul (const JNullType &object) |
| Multiply with object. More... | |
Protected Attributes | |
| double | __phi |
Friends | |
| std::istream & | operator>> (std::istream &in, JAngle2D &angle) |
| Read angle from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JAngle2D &angle) |
| Write angle to output. More... | |
| JReader & | operator>> (JReader &in, JAngle2D &angle) |
| Read angle from input. More... | |
| JWriter & | operator<< (JWriter &out, const JAngle2D &angle) |
| Write angle to output. More... | |
Data structure for angle in two dimensions.
This class serves as input to the rotation matrix JRotation2D.
Definition at line 30 of file JAngle2D.hh.
|
inline |
Default constructor.
Definition at line 37 of file JAngle2D.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Scale angle.
| factor | multiplication factor |
Definition at line 144 of file JAngle2D.hh.
|
inline |
Scale angle.
| factor | division factor |
Definition at line 158 of file JAngle2D.hh.
|
inline |
Check equality.
| angle | angle |
Definition at line 172 of file JAngle2D.hh.
|
inline |
Get dot product.
| angle | angle |
Definition at line 184 of file JAngle2D.hh.
|
inline |
Normalise angle.
Definition at line 197 of file JAngle2D.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
friend |
Read angle from input.
| in | input stream |
| angle | angle |
Definition at line 215 of file JAngle2D.hh.
|
friend |
Write angle to output.
| out | output stream |
| angle | angle |
Definition at line 228 of file JAngle2D.hh.
Read angle from input.
| in | reader |
| angle | angle |
Definition at line 241 of file JAngle2D.hh.
Write angle to output.
| out | writer |
| angle | angle |
Definition at line 254 of file JAngle2D.hh.
|
protected |
Definition at line 260 of file JAngle2D.hh.
1.8.5