All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathCircleArc2D

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&)
Constructs a CATMathCircleArc2D from 3 CATMathPoint.

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.

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 CATMathPoint2D& iLimit,
const CATMathPoint2D& iMiddle,
const CATMathPoint2D& iOtherLimit)
Constructs a CATMathCircleArc2D from 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.

Methods


o GetCenter
public void GetCenter(CATMathPoint2D& ioOrigin) const
Returns the center of this CATMathCircleArc2D.
o GetEndAngle
public CATAngle GetEndAngle()const
Returns the last limiting angle of this CATMathCircleArc2D in radian.
o GetRadius
public CATPositiveLength GetRadius()const
Returns the radius of this CATMathCircleArc2D.
o GetStartAngle
public CATAngle GetStartAngle()const
Returns the first limiting angle of this CATMathCircleArc2D in radian.
o IsEmpty
public short IsEmpty()const
Returns 0 if the data of this CATMathCircleArc2D are valuated.

This object is included in the file: CATMathCircleArc2D.h
If needed, your Imakefile.mk should include the module: CATMathematics

Copyright © 2003, Dassault Systèmes. All rights reserved.