|
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 | 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 | getPerpDot (const JVector2D &point) const |
| Get perpendicular dot product. More... | |
| JVector2D & | transform (const JMatrix2D &T) |
| Transform. More... | |
| JVector2D & | transform (const JMatrix2D &T) |
| Transform. 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 JSecond_t &object) |
| Multiply with object. More... | |
| JVector2D & | div (const double factor) |
| Scale vector. 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.
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.
|
inline |
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.
|
inline |
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 |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
inlineinherited |
|
inlineinherited |
Get dot product.
| point | vector |
Definition at line 233 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get perpendicular dot product.
| point | vector |
Definition at line 247 of file JVector2D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get squared of distance to point.
| point | point |
Definition at line 209 of file JVector2D.hh.
|
inlineinherited |
Get distance to point.
| point | point |
Definition at line 221 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 255 of file JVector2D.hh.
|
protectedinherited |
Definition at line 256 of file JVector2D.hh.
1.8.16