Mathematics CATMathCircleArc2D
Usage: you must use this class as is. You should never derive it.
public class CATMathCircleArc2D
Class representing an arc of a circle.
It is defined by a CATMathPoint (Center), a CATMathLength
(Radius) and 2 angles (StartAngle and
EndAngle). The angles are expressed in radians and
0 < StartAngle < CAT2PI ,
StartAngle < EndAngle < StartAngle + CAT2PI.
Constructor and Destructor Index
- o
CATMathCircleArc2D()
- Constructs an empty CATMathCircleArc2D without valued data.
- o
CATMathCircleArc2D(CATMathPoint2D&,CATMathPoint2D&,CATMathPoint2D&)
-
Method Index
- o
GetCenter(CATMathPoint2D&)
- Returns the center of this CATMathCircleArc2D.
- o
GetEndAngle()
- Returns the last limiting angle of this CATMathCircleArc2D in radian.
- o
GetRadius()
- Returns the radius of this CATMathCircleArc2D.
- o
GetStartAngle()
- Returns the first limiting angle of this CATMathCircleArc2D in radian.
- o
IsEmpty()
- Returns 0 if the data of this CATMathCircleArc2D are valuated.
- o
Set(CATMathPoint2D&,CATMathPoint2D&,CATMathPoint2D&)
- Modifies this CATMathCircleArc2D by 3 CATMathPoint.
Constructor and Destructor
o CATMathCircleArc2D
public CATMathCircleArc2D( | ) |
-
Constructs an empty CATMathCircleArc2D without valued data.
This is mainly used for array creation. The use of an empty
CATMathCircleArc2D leads to an exception, except for the IsEmpty
method.
o CATMathCircleArc2D
public CATMathCircleArc2D( | const | iLimit, |
| const | iMiddle, |
| const | iOtherLimit) |
-
Methods
o GetCenter
public GetCenter( | | ioOrigin) |
-
Returns the center of this CATMathCircleArc2D.
o GetEndAngle
-
Returns the last limiting angle of this CATMathCircleArc2D in radian.
o GetRadius
-
Returns the radius of this CATMathCircleArc2D.
o GetStartAngle
-
Returns the first limiting angle of this CATMathCircleArc2D in radian.
o IsEmpty
-
Returns 0 if the data of this CATMathCircleArc2D are valuated.
o Set
public Set( | const | iLimit, |
| const | iMiddle, |
| const | iOtherLimit) |
-
Modifies this CATMathCircleArc2D by 3 CATMathPoint.
The circle is limited by the first and third points, without order.
The program defines itself the corresponding StartAngle and
EndAngle.
The second point belongs to the CATMathCircleArc2D.
This constructor produces an error when the iLimit and iMiddle points are
coincident. When iLimit and iOtherLimit are coincident, an arc whose
diameter ends are iLimit and iOtherLimit is constructed.
- Returns:
- E_FAIL if t the iLimit and iMiddle points are coincident (an arc whose diameter ends are iLimit and iOtherLimit is constructed), S_OK otherwise.
This object is included in the file: CATMathCircleArc2D.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.