|
Jpp
|
Data structure for anchor position on sea bed. More...
#include <JAnchor.hh>
Public Member Functions | |
| JAnchor () | |
| Default constructor. More... | |
| JAnchor (const int id, const double x, const double y) | |
| Constructor. More... | |
| int | getID () const |
| Get identifier. More... | |
| void | setID (const int id) |
| Set identifier. More... | |
| bool | less (const JObjectID &object) const |
| Less than method. More... | |
| bool | less (const int id) const |
| Less than method. More... | |
| bool | more (const int id) const |
| More than method. More... | |
| const JPosition2D & | getPosition () const |
| Get position. More... | |
| JPosition2D & | getPosition () |
| Get position. More... | |
| void | setPosition (const JVector2D &pos) |
| Set position. More... | |
| operator JAngle2D () const | |
| Type conversion operator. More... | |
| operator JVersor2D () const | |
| Type conversion operator. More... | |
| JPosition2D & | rotate (const JRotation2D &R) |
| Rotate. More... | |
| JPosition2D & | rotate_back (const JRotation2D &R) |
| Rotate back. More... | |
| double | getDot (const JAngle2D &angle) const |
| Get dot product. More... | |
| double | getDot (const JVersor2D &versor) const |
| Get dot product. More... | |
| double | getDot (const JVector2D &point) const |
| Get dot product. More... | |
| double | getPerpDot (const JAngle2D &angle) const |
| Get perpendicular dot product. More... | |
| double | getPerpDot (const JVersor2D &dir) const |
| Get perpendicular dot product. More... | |
| double | getPerpDot (const JVector2D &point) const |
| Get perpendicular dot product. More... | |
| double | getX () const |
| Get x position. More... | |
| double | getY () const |
| Get y position. More... | |
| JVector2D & | negate () |
| Negate vector. More... | |
| JVector2D & | add (const JVector2D &vector) |
| Add vector. More... | |
| JVector2D & | sub (const JVector2D &vector) |
| Subtract vector. More... | |
| JVector2D & | mul (const double factor) |
| Scale vector. More... | |
| JVector2D & | mul (const JNullType &object) |
| Multiply with object. More... | |
| JVector2D & | div (const double factor) |
| Scale vector. More... | |
| JVector2D & | transform (const JMatrix2D &T) |
| Transform. More... | |
| bool | equals (const JVector2D &vector) const |
| Check equality. More... | |
| double | getLengthSquared () const |
| Get length squared. More... | |
| double | getLength () const |
| Get length. More... | |
| double | getDistanceSquared (const JVector2D &point) const |
| Get squared of distance to point. More... | |
| double | getDistance (const JVector2D &point) const |
| Get distance to point. More... | |
Protected Attributes | |
| int | __id |
| double | __x |
| double | __y |
Friends | |
| std::istream & | operator>> (std::istream &in, JAnchor &anchor) |
| Read JAnchor from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JAnchor &anchor) |
| Write JAnchor to output. More... | |
Data structure for anchor position on sea bed.
Definition at line 24 of file JAnchor.hh.
|
inline |
Default constructor.
Definition at line 32 of file JAnchor.hh.
|
inline |
Constructor.
| id | identifier |
| x | x position |
| y | y position |
Definition at line 45 of file JAnchor.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Less than method.
| object | object identifier |
Definition at line 77 of file JObjectID.hh.
|
inlineinherited |
Less than method.
| id | identifier |
Definition at line 89 of file JObjectID.hh.
|
inlineinherited |
More than method.
| id | identifier |
Definition at line 101 of file JObjectID.hh.
|
inlineinherited |
Get position.
Definition at line 97 of file JPosition2D.hh.
|
inlineinherited |
Get position.
Definition at line 108 of file JPosition2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 141 of file JPosition2D.hh.
|
inlineinherited |
Rotate.
| R | rotation matrix |
Definition at line 153 of file JPosition2D.hh.
|
inlineinherited |
Rotate back.
| R | rotation matrix |
Definition at line 167 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
| angle | angle |
Definition at line 181 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
| versor | versor |
Definition at line 195 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
| point | vector |
Definition at line 231 of file JVector2D.hh.
|
inlineinherited |
Get perpendicular dot product.
| angle | angle |
Definition at line 209 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
| dir | direction |
Definition at line 223 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
| point | vector |
Definition at line 245 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract vector.
| vector | vector |
Definition at line 113 of file JVector2D.hh.
|
inlineinherited |
Scale vector.
| factor | multiplication factor |
Definition at line 128 of file JVector2D.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale vector.
| factor | division factor |
Definition at line 143 of file JVector2D.hh.
|
inlineinherited |
Check equality.
| vector | vector |
Definition at line 172 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 195 of file JVector2D.hh.
|
inlineinherited |
Get squared of distance to point.
| point | point |
Definition at line 207 of file JVector2D.hh.
|
inlineinherited |
Get distance to point.
| point | point |
Definition at line 219 of file JVector2D.hh.
|
friend |
Read JAnchor from input.
| in | input stream |
| anchor | JAnchor |
Definition at line 60 of file JAnchor.hh.
|
friend |
Write JAnchor to output.
| out | output stream |
| anchor | JAnchor |
Definition at line 79 of file JAnchor.hh.
|
protectedinherited |
Definition at line 159 of file JObjectID.hh.
|
protectedinherited |
Definition at line 253 of file JVector2D.hh.
|
protectedinherited |
Definition at line 254 of file JVector2D.hh.
1.8.5