| Jpp
    18.0.1-rc.2
    the software that should make you happy | 
Data structure for position in two dimensions. More...
#include <JPosition2D.hh>
 
  
 | Public Member Functions | |
| JPosition2D () | |
| Default constructor.  More... | |
| JPosition2D (const JVector2D &pos) | |
| Constructor.  More... | |
| JPosition2D (const JAngle2D &angle) | |
| Constructor.  More... | |
| JPosition2D (const JVersor2D &dir) | |
| Constructor.  More... | |
| JPosition2D (const double x, const double y) | |
| Constructor.  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 | getPerpDot (const JAngle2D &angle) const | 
| Get perpendicular dot product.  More... | |
| double | getPerpDot (const JVersor2D &dir) 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... | |
| double | getDot (const JVector2D &point) const | 
| Get dot product.  More... | |
| double | getPerpDot (const JVector2D &point) const | 
| Get perpendicular dot product.  More... | |
| Protected Attributes | |
| double | __x | 
| double | __y | 
| Friends | |
| std::istream & | operator>> (std::istream &in, JPosition2D &position) | 
| Read position from input.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JPosition2D &position) | 
| Write position to output.  More... | |
| JReader & | operator>> (JReader &in, JPosition2D &position) | 
| Read position from input.  More... | |
| JWriter & | operator<< (JWriter &out, const JPosition2D &position) | 
| Write position to output.  More... | |
Data structure for position in two dimensions.
Definition at line 31 of file JPosition2D.hh.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Get position.
Definition at line 98 of file JPosition2D.hh.
| 
 | inline | 
Get position.
Definition at line 109 of file JPosition2D.hh.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Type conversion operator.
Definition at line 142 of file JPosition2D.hh.
| 
 | inline | 
Rotate.
| R | rotation matrix | 
Definition at line 154 of file JPosition2D.hh.
| 
 | inline | 
Rotate back.
| R | rotation matrix | 
Definition at line 168 of file JPosition2D.hh.
| 
 | inline | 
Get dot product.
| angle | angle | 
Definition at line 182 of file JPosition2D.hh.
| 
 | inline | 
Get dot product.
| versor | versor | 
Definition at line 196 of file JPosition2D.hh.
| 
 | inline | 
Get perpendicular dot product.
| angle | angle | 
Definition at line 210 of file JPosition2D.hh.
| 
 | inline | 
Get perpendicular dot product.
| dir | direction | 
Definition at line 224 of file JPosition2D.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 | 
| 
 | 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.
| 
 | inlineinherited | 
Get dot product.
| point | vector | 
Definition at line 235 of file JVector2D.hh.
| 
 | inlineinherited | 
Get perpendicular dot product.
| point | vector | 
Definition at line 249 of file JVector2D.hh.
| 
 | friend | 
Read position from input.
| in | input stream | 
| position | position | 
Definition at line 239 of file JPosition2D.hh.
| 
 | friend | 
Write position to output.
| out | output stream | 
| position | position | 
Definition at line 254 of file JPosition2D.hh.
| 
 | friend | 
Read position from input.
| in | reader | 
| position | position | 
Definition at line 272 of file JPosition2D.hh.
| 
 | friend | 
Write position to output.
| out | writer | 
| position | position | 
Definition at line 288 of file JPosition2D.hh.
| 
 | protectedinherited | 
Definition at line 257 of file JVector2D.hh.
| 
 | protectedinherited | 
Definition at line 258 of file JVector2D.hh.
 1.8.5
 1.8.5