#include <2DSegment.h>
Inheritance diagram for C2DSegment:

Public Member Functions | |
| C2DSegment (void) | |
| Constructor. | |
| ~C2DSegment (void) | |
| Destructor. | |
| C2DSegment (const C2DArc &Arc) | |
| Constructor. | |
| C2DSegment (const C2DPoint &PtFrom, const C2DPoint &PtTo, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) | |
| Constructor. | |
| C2DSegment (const C2DPoint &PtFrom, const C2DVector &Vector, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) | |
| Constructor. | |
| C2DSegment (const C2DLine &Line, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) | |
| Constructor. | |
| void | Set (const C2DPoint &PtFrom, const C2DPoint &PtTo, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) |
| Assignment. | |
| void | Set (const C2DPoint &PtFrom, const C2DVector &Vector, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) |
| Assignment. | |
| void | Set (const C2DLine &Line, double dRadius, bool bCentreOnRight=true, bool bArcOnRight=false) |
| Assignment. | |
| bool | IsValid (void) const |
| False if the radius is too small to join the points given. | |
| C2DPoint | GetCircleCentre (void) const |
| Returns the centre of the corresponding circle. | |
| double | GetPerimeter (void) const |
| Returns the perimeter of the shape. | |
| double | GetArcLength (void) const |
| Returns the length of the arc. | |
| void | GetBoundingRect (C2DRect &Rect) const |
| Returns the bounding rectangle. | |
| void | GetInverse (C2DSegment &Other) const |
| Returns the inverse of this i.e. the other part of the circle to this. | |
| double | GetSegmentAngle (void) const |
| Always +ve and LESS than PI. In radians. | |
| double | GetArea (void) const |
| Returns the area. | |
| double | GetAreaSigned (void) const |
| Returns the area which is positive if anti-clockwise -ve if clockwise. | |
| C2DPoint | GetCentroid (void) const |
| Returns the centroid. | |
| const C2DPoint & | GetPointFrom (void) const |
| C2DPoint | GetPointTo (void) const |
| const C2DArc & | GetArc (void) const |
| const C2DLine & | GetLine (void) const |
| bool | Contains (const C2DPoint &TestPoint) const |
| Returns whether the point is in the shape. | |
| void | Move (const C2DVector &vector) |
| void | RotateToRight (double dAng, const C2DPoint &Origin) |
| void | Grow (double dFactor, const C2DPoint &Origin) |
| void | Reflect (const C2DPoint &point) |
| void | Reflect (const C2DLine &Line) |
| Reflects the in the line given. | |
| double | Distance (const C2DPoint &TestPoint) const |
| Returns the distance to the point given. | |
| void | Project (const C2DLine &Line, CInterval &Interval) const |
| Projects this onto the line given. | |
| void | Project (const C2DVector &Vector, CInterval &Interval) const |
| Projects this onto the vector given. | |
| void | SnapToGrid (void) |
| Snaps this to the conceptual grid. | |
C2DSegment which is a segment of a circle defined by a line, a circle radius, whether the circle centre and the arc are on the right or left.
---------------------------------------------------------------------------
|
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||||||||||
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||||||||||
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||||||
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns whether the point is in the shape.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the distance to the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the length of the arc.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the area.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the area which is positive if anti-clockwise -ve if clockwise.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the bounding rectangle.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
Returns the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the centre of the corresponding circle.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the inverse of this i.e. the other part of the circle to this.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the perimeter of the shape.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Always +ve and LESS than PI. In radians.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
False if the radius is too small to join the points given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Projects this onto the vector given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Projects this onto the line given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||||||||||
|
Assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||||||||||
|
Assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||||||||||
|
Assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Snaps this to the conceptual grid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
1.4.4