| 
    Jpp
    
   | 
 
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... | |
| 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... | |
| 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 30 of file JPosition2D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get position.
Definition at line 97 of file JPosition2D.hh.
      
  | 
  inline | 
Get position.
Definition at line 108 of file JPosition2D.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Type conversion operator.
Definition at line 141 of file JPosition2D.hh.
      
  | 
  inline | 
Rotate.
| R | rotation matrix | 
Definition at line 153 of file JPosition2D.hh.
      
  | 
  inline | 
Rotate back.
| R | rotation matrix | 
Definition at line 167 of file JPosition2D.hh.
      
  | 
  inline | 
Get dot product.
| angle | angle | 
Definition at line 181 of file JPosition2D.hh.
      
  | 
  inline | 
Get dot product.
| versor | versor | 
Definition at line 195 of file JPosition2D.hh.
      
  | 
  inline | 
Get perpendicular dot product.
| angle | angle | 
Definition at line 209 of file JPosition2D.hh.
      
  | 
  inline | 
Get perpendicular dot product.
| dir | direction | 
Definition at line 223 of file JPosition2D.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.
      
  | 
  inlineinherited | 
Get dot product.
| point | vector | 
Definition at line 231 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get perpendicular dot product.
| point | vector | 
Definition at line 245 of file JVector2D.hh.
      
  | 
  friend | 
Read position from input.
| in | input stream | 
| position | position | 
Definition at line 238 of file JPosition2D.hh.
      
  | 
  friend | 
Write position to output.
| out | output stream | 
| position | position | 
Definition at line 253 of file JPosition2D.hh.
      
  | 
  friend | 
Read position from input.
| in | reader | 
| position | position | 
Definition at line 268 of file JPosition2D.hh.
      
  | 
  friend | 
Write position to output.
| out | writer | 
| position | position | 
Definition at line 284 of file JPosition2D.hh.
      
  | 
  protectedinherited | 
Definition at line 253 of file JVector2D.hh.
      
  | 
  protectedinherited | 
Definition at line 254 of file JVector2D.hh.
 1.8.5