Jpp
16.0.2
the software that should make you happy
|
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... | |
int & | getID () |
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... | |
JFirst_t & | mul (const JSecond_t &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 double precision=std::numeric_limits< double >::min()) 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 |
|
inlineinherited |
Less than method.
object | object identifier |
Definition at line 84 of file JObjectID.hh.
|
inlineinherited |
Less than method.
id | identifier |
Definition at line 96 of file JObjectID.hh.
|
inlineinherited |
More than method.
id | identifier |
Definition at line 108 of file JObjectID.hh.
|
inlineinherited |
Get position.
Definition at line 98 of file JPosition2D.hh.
|
inlineinherited |
Get position.
Definition at line 109 of file JPosition2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 142 of file JPosition2D.hh.
|
inlineinherited |
Rotate.
R | rotation matrix |
Definition at line 154 of file JPosition2D.hh.
|
inlineinherited |
Rotate back.
R | rotation matrix |
Definition at line 168 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 182 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
versor | versor |
Definition at line 196 of file JPosition2D.hh.
|
inlineinherited |
Get dot product.
point | vector |
Definition at line 235 of file JVector2D.hh.
|
inlineinherited |
Get perpendicular dot product.
angle | angle |
Definition at line 210 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
dir | direction |
Definition at line 224 of file JPosition2D.hh.
|
inlineinherited |
Get perpendicular dot product.
point | vector |
Definition at line 249 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract vector.
vector | vector |
Definition at line 115 of file JVector2D.hh.
|
inlineinherited |
Scale vector.
factor | multiplication factor |
Definition at line 130 of file JVector2D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
|
inlineinherited |
Scale vector.
factor | division factor |
Definition at line 145 of file JVector2D.hh.
|
inlineinherited |
Check equality.
vector | vector |
precision | precision |
Definition at line 175 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 199 of file JVector2D.hh.
|
inlineinherited |
Get squared of distance to point.
point | point |
Definition at line 211 of file JVector2D.hh.
|
inlineinherited |
Get distance to point.
point | point |
Definition at line 223 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 140 of file JObjectID.hh.
|
protectedinherited |
Definition at line 257 of file JVector2D.hh.
|
protectedinherited |
Definition at line 258 of file JVector2D.hh.