#include <2DCircle.h>
Inheritance diagram for C2DCircle:
Public Member Functions | |
C2DCircle (void) | |
Constructor. | |
C2DCircle (const C2DPoint &Point, double dRadius) | |
Constructor. | |
C2DCircle (const C2DCircle &Other) | |
Copy constructor. | |
~C2DCircle (void) | |
Destructor. | |
void | Set (const C2DPoint &Centre, double dRadius) |
Set. | |
void | SetCentre (const C2DPoint &Centre) |
Set centre. | |
void | SetRadius (double dRadius) |
Set radius. | |
void | SetMinimum (const C2DPoint &Point1, const C2DPoint &Point2) |
Set to be the minimum bounding circle for the 2 points. | |
void | SetMinimum (const C2DPoint &Point1, const C2DPoint &Point2, const C2DPoint &Point3) |
Set to be the minimum bounding circle for the 3 points. | |
void | SetInscribed (const C2DPoint &Point1, const C2DPoint &Point2, const C2DPoint &Point3) |
Sets the circle to be the maximum contained circle within the 3 points provided. | |
void | SetInscribed (const C2DTriangle &Triangle) |
Sets the circle to be the maximum contained circle within the 3 points provided. | |
bool | SetCircumscribed (const C2DPoint &Point1, const C2DPoint &Point2, const C2DPoint &Point3) |
Set to be circle that places all 3 points on the edge. | |
bool | SetCircumscribed (const C2DTriangle &Triangle) |
Set to be circle that places all 3 points of the triangle on the edge. | |
const C2DPoint & | GetCentre (void) const |
Returns the centre. | |
double | GetRadius (void) const |
Returns the radius. | |
double | GetArea (void) const |
Returns the area. | |
double | GetPerimeter (void) const |
Returns the perimeter. | |
const C2DCircle & | operator= (const C2DCircle &Other) |
Assignment. | |
void | GetBoundingRect (C2DRect &Rect) const |
Bounding rect. | |
bool | Crosses (const C2DCircle &Other, C2DPointSet *IntersectionPts=0) const |
Circle-circle intersection. | |
bool | Crosses (const C2DLine &Line, C2DPointSet *IntersectionPts=0) const |
Circle-line intersection. | |
bool | CrossesRay (const C2DLine &Ray, C2DPointSet *IntersectionPts=0) const |
Circle-ray intersection. | |
bool | Contains (const C2DPoint &pt) const |
Containment. | |
bool | IsWithinDistance (const C2DPoint &pt, double dRange) const |
Proximity. | |
void | Move (const C2DVector &Vector) |
Move by the verctor. | |
void | RotateToRight (double dAng, const C2DPoint &Origin) |
Rotation. | |
void | Grow (double dFactor, const C2DPoint &Origin) |
Grow around the origin. | |
void | Reflect (const C2DPoint &Point) |
Reflection. | |
void | Reflect (const C2DLine &Line) |
Reflects throught the line provided. | |
double | Distance (const C2DPoint &TestPoint) const |
Distance to a point. | |
double | Distance (const C2DPoint &TestPoint, C2DPoint *ptOnThis=0) const |
Distance to a point, returns the closest point on the circle. | |
double | Distance (const C2DLine &Line, C2DPoint *ptOnThis=0, C2DPoint *ptOnOther=0) const |
Distance to the line, can retrieve closest points. | |
double | Distance (const C2DCircle &Other, C2DPoint *ptOnThis=0, C2DPoint *ptOnOther=0) const |
Distance to the other circles, can retrieve closest points. | |
void | Project (const C2DLine &Line, CInterval &Interval) const |
Projection onto the line. | |
void | Project (const C2DVector &Vector, CInterval &Interval) const |
Projection onto the vector. | |
void | SnapToGrid (void) |
Snaps to the conceptual grid. |
Class which represents a circle.
---------------------------------------------------------------------------
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Copy constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Containment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Circle-line intersection.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Circle-circle intersection.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Circle-ray intersection.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Distance to the other circles, can retrieve closest points.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Distance to the line, can retrieve closest points.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Distance to a point, returns the closest point on the circle.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Distance to a point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Returns the area.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Bounding rect.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Returns the perimeter.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Returns the radius.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Grow around the origin.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Proximity.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Move by the verctor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Projection onto the vector.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Projection onto the line.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Reflects throught the line provided.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Reflection.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Rotation.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
Set.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Set to be circle that places all 3 points of the triangle on the edge.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Set to be circle that places all 3 points on the edge.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sets the circle to be the maximum contained circle within the 3 points provided.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sets the circle to be the maximum contained circle within the 3 points provided.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Set to be the minimum bounding circle for the 3 points.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Set to be the minimum bounding circle for the 2 points.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Snaps to the conceptual grid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |