| 
    Jpp
    
   | 
 
Data structure for circle in two dimensions. More...
#include <JCircle2D.hh>
  
 Public Member Functions | |
| JCircle2D () | |
| Default constructor.  More... | |
| JCircle2D (const JVector2D &point, const double r) | |
| Constructor.  More... | |
| JCircle2D (const JVector2D &p0, const JVector2D &p1) | |
| Constructor.  More... | |
| JCircle2D (const JVector2D &p0, const JVector2D &p1, const JVector2D &p2) | |
| Constructor.  More... | |
| template<class T > | |
| JCircle2D (T __begin, T __end) | |
| Constructor.  More... | |
| double | getRadius () const | 
| Get radius.  More... | |
| void | set (const JVector2D &p0, const JVector2D &p1) | 
| Set circle.  More... | |
| void | set (const JVector2D &p0, const JVector2D &p1, const JVector2D &p2) | 
| Set circle.  More... | |
| template<class T > | |
| void | set (T __begin, T __end) | 
| Set circle.  More... | |
| bool | is_inside (const JVector2D &pos) const | 
| Check whether given point is inside circle.  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 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 | |
| double | __r | 
| double | __x | 
| double | __y | 
Private Member Functions | |
| template<class T > | |
| void | configure (T __begin, T __end, const JVector2D &p0) | 
| Determine smallest enclosing circle.  More... | |
| template<class T > | |
| void | configure (T __begin, T __end, const JVector2D &p0, const JVector2D &p1) | 
| Determine smallest enclosing circle.  More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, JCircle2D &circle) | 
| Read circle from input stream.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JCircle2D &circle) | 
| Write circle to output stream.  More... | |
| JReader & | operator>> (JReader &in, JCircle2D &circle) | 
| Read circle from input.  More... | |
| JWriter & | operator<< (JWriter &out, const JCircle2D &circle) | 
| Write circle to output.  More... | |
Data structure for circle in two dimensions.
Definition at line 29 of file JCircle2D.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 36 of file JCircle2D.hh.
      
  | 
  inline | 
Constructor.
| point | point | 
| r | radius | 
Definition at line 48 of file JCircle2D.hh.
Constructor.
Determines circle through two points.
| p0 | first point | 
| p1 | second point | 
Definition at line 62 of file JCircle2D.hh.
      
  | 
  inline | 
Constructor.
Determines circle through three points.
| p0 | first point | 
| p1 | second point | 
| p2 | third point | 
Definition at line 79 of file JCircle2D.hh.
Constructor.
Determines smallest enclosing circle around set of points. The type of data should have the following member methods:
    double getX();   // x coordinate
    double getY();   // y coordinate
Reference: Computational Geometry Algorithms and Applications Authors: de Berg, M., Cheong, O., van Kreveld, M., Overmars, M.
| __begin | begin of data | 
| __end | end of data | 
Definition at line 107 of file JCircle2D.hh.
      
  | 
  inline | 
Set circle.
Determines circle through two points.
| p0 | first point | 
| p1 | second point | 
Definition at line 134 of file JCircle2D.hh.
      
  | 
  inline | 
Set circle.
Determines circle through three points.
| p0 | first point | 
| p1 | second point | 
| p2 | third point | 
Definition at line 151 of file JCircle2D.hh.
Set circle.
Determines smallest enclosing circle around set of points.
    double getX();   // x coordinate
    double getY();   // y coordinate
| __begin | begin of data | 
| __end | end of data | 
Definition at line 200 of file JCircle2D.hh.
      
  | 
  inline | 
Check whether given point is inside circle.
| pos | position | 
Definition at line 239 of file JCircle2D.hh.
      
  | 
  inlineprivate | 
Determine smallest enclosing circle.
| __begin | begin of data | 
| __end | end of data | 
| p0 | point on circle | 
Definition at line 323 of file JCircle2D.hh.
      
  | 
  inlineprivate | 
Determine smallest enclosing circle.
| __begin | begin of data | 
| __end | end of data | 
| p0 | point on circle | 
| p1 | point on circle | 
Definition at line 349 of file JCircle2D.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 234 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 248 of file JVector2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Subtract vector.
| vector | vector | 
Definition at line 114 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Scale vector.
| factor | multiplication factor | 
Definition at line 129 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 144 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Check equality.
| vector | vector | 
| precision | precision | 
Definition at line 174 of file JVector2D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get length.
Definition at line 198 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get squared of distance to point.
| point | point | 
Definition at line 210 of file JVector2D.hh.
      
  | 
  inlineinherited | 
Get distance to point.
| point | point | 
Definition at line 222 of file JVector2D.hh.
      
  | 
  friend | 
Read circle from input stream.
| in | input stream | 
| circle | circle | 
Definition at line 252 of file JCircle2D.hh.
      
  | 
  friend | 
Write circle to output stream.
| out | output stream | 
| circle | circle | 
Definition at line 268 of file JCircle2D.hh.
Read circle from input.
| in | reader | 
| circle | circle | 
Definition at line 285 of file JCircle2D.hh.
Write circle to output.
| out | writer | 
| circle | circle | 
Definition at line 301 of file JCircle2D.hh.
      
  | 
  protected | 
Definition at line 311 of file JCircle2D.hh.
      
  | 
  protectedinherited | 
Definition at line 256 of file JVector2D.hh.
      
  | 
  protectedinherited | 
Definition at line 257 of file JVector2D.hh.
 1.8.5