AnyCAD Rapid SDK
2020
The Rapid CAD SDK

Public Member Functions  
synchronized void  delete () 
GCirc2d ()  
GCirc2d (GAx2d XAxis, double Radius, boolean Sense)  
GCirc2d (GAx2d XAxis, double Radius)  
GCirc2d (GAx22d Axis, double Radius)  
void  SetLocation (GPnt2d P) 
void  SetXAxis (GAx2d A) 
void  SetAxis (GAx22d A) 
void  SetYAxis (GAx2d A) 
void  SetRadius (double Radius) 
double  Area () 
void  Coefficients (double[] A, double[] B, double[] C, double[] D, double[] E, double[] F) 
boolean  Contains (GPnt2d P, double LinearTolerance) 
double  Distance (GPnt2d P) 
double  SquareDistance (GPnt2d P) 
double  Length () 
GPnt2d  Location () 
double  Radius () 
GAx22d  Axis () 
GAx22d  Position () 
GAx2d  XAxis () 
GAx2d  YAxis () 
void  Reverse () 
GCirc2d  Reversed () 
boolean  IsDirect () 
void  Mirror (GPnt2d P) 
GCirc2d  Mirrored (GPnt2d P) 
void  Mirror (GAx2d A) 
GCirc2d  Mirrored (GAx2d A) 
void  Rotate (GPnt2d P, double Ang) 
GCirc2d  Rotated (GPnt2d P, double Ang) 
void  Scale (GPnt2d P, double S) 
GCirc2d  Scaled (GPnt2d P, double S) 
void  Transform (GTrsf2d T) 
GCirc2d  Transformed (GTrsf2d T) 
void  Translate (GVec2d V) 
GCirc2d  Translated (GVec2d V) 
void  Translate (GPnt2d P1, GPnt2d P2) 
GCirc2d  Translated (GPnt2d P1, GPnt2d P2) 
Protected Member Functions  
GCirc2d (long cPtr, boolean cMemoryOwn)  
void  finalize () 
Static Protected Member Functions  
static long  getCPtr (GCirc2d obj) 
Protected Attributes  
transient boolean  swigCMemOwn 
Describes a circle in the plane (2D space). A circle is defined by its radius and positioned in the plane with a coordinate system (a gp_Ax22d object) as follows:  the origin of the coordinate system is the center of the circle, and  the orientation (direct or indirect) of the coordinate system gives an implicit orientation to the circle (and defines its trigonometric sense). This positioning coordinate system is the "local coordinate system" of the circle. Note: when a gp_Circ2d circle is converted into a Geom2d_Circle circle, some implicit properties of the circle are used explicitly:  the implicit orientation corresponds to the direction in which parameter values increase,  the starting point for parameterization is that of the "X Axis" of the local coordinate system (i.e. the "X Axis" of the circle). See Also GccAna and Geom2dGcc packages which provide functions for constructing circles defined by geometric constraints gce_MakeCirc2d which provides functions for more complex circle constructions Geom2d_Circle which provides additional functions for constructing circles and works, with the parametric equations of circles in particular gp_Ax22d
GCirc2d.GCirc2d  (  ) 
creates an indefinite circle.
GCirc2d.GCirc2d  (  GAx2d  XAxis, 
double  Radius,  
boolean  Sense  
) 
The location point of XAxis is the center of the circle. Warnings : It is not forbidden to create a circle with Radius = 0.0 Raises ConstructionError if Radius < 0.0. Raised if Radius < 0.0.
GCirc2d.GCirc2d  (  GAx2d  XAxis, 
double  Radius  
) 
The location point of XAxis is the center of the circle. Warnings : It is not forbidden to create a circle with Radius = 0.0 Raises ConstructionError if Radius < 0.0. Raised if Radius < 0.0.
GCirc2d.GCirc2d  (  GAx22d  Axis, 
double  Radius  
) 
Axis defines the Xaxis and Yaxis of the circle which defines the origin and the sense of parametrization. The location point of Axis is the center of the circle. Warnings : It is not forbidden to create a circle with Radius = 0.0 Raises ConstructionError if Radius < 0.0. Raised if Radius < 0.0.
double GCirc2d.Area  (  ) 
Computes the area of the circle.
GAx22d GCirc2d.Axis  (  ) 
returns the position of the circle.
void GCirc2d.Coefficients  (  double[]  A, 
double[]  B,  
double[]  C,  
double[]  D,  
double[]  E,  
double[]  F  
) 
Returns the normalized coefficients from the implicit equation of the circle : A * (X**2) + B * (Y**2) + 2*C*(X*Y) + 2*D*X + 2*E*Y + F = 0.0
boolean GCirc2d.Contains  (  GPnt2d  P, 
double  LinearTolerance  
) 
Does <me> contain P ? Returns True if the distance between P and any point on the circumference of the circle is lower of equal to <LinearTolerance>.
double GCirc2d.Distance  (  GPnt2d  P  ) 
Computes the minimum of distance between the point P and any point on the circumference of the circle.
boolean GCirc2d.IsDirect  (  ) 
Returns true if the local coordinate system is direct and false in the other case.
double GCirc2d.Length  (  ) 
computes the circumference of the circle.
GPnt2d GCirc2d.Location  (  ) 
Returns the location point (center) of the circle.
Performs the symmetrical transformation of a circle with respect to the point P which is the center of the symmetry
Performs the symmetrical transformation of a circle with respect to an axis placement which is the axis of the symmetry.
GAx22d GCirc2d.Position  (  ) 
returns the position of the circle. Idem Axis(me).
double GCirc2d.Radius  (  ) 
Returns the radius value of the circle.
void GCirc2d.Reverse  (  ) 
Reverses the orientation of the local coordinate system of this circle (the "Y Direction" is reversed) and therefore changes the implicit orientation of this circle. Reverse assigns the result to this circle,
GCirc2d GCirc2d.Reversed  (  ) 
Reverses the orientation of the local coordinate system of this circle (the "Y Direction" is reversed) and therefore changes the implicit orientation of this circle. Reversed creates a new circle.
Rotates a circle. P is the center of the rotation. Ang is the angular value of the rotation in radians.
Scales a circle. S is the scaling value. Warnings : If S is negative the radius stay positive but the "XAxis" and the "YAxis" are reversed as for an ellipse.
void GCirc2d.SetAxis  (  GAx22d  A  ) 
Changes the X axis of the circle.
void GCirc2d.SetLocation  (  GPnt2d  P  ) 
Changes the location point (center) of the circle.
void GCirc2d.SetRadius  (  double  Radius  ) 
Modifies the radius of this circle. This class does not prevent the creation of a circle where Radius is null. Exceptions Standard_ConstructionError if Radius is negative.
void GCirc2d.SetXAxis  (  GAx2d  A  ) 
Changes the X axis of the circle.
void GCirc2d.SetYAxis  (  GAx2d  A  ) 
Changes the Y axis of the circle.
double GCirc2d.SquareDistance  (  GPnt2d  P  ) 
Computes the square distance between <me> and the point P.
Transforms a circle with the transformation T from class Trsf2d.
Translates a circle in the direction of the vector V. The magnitude of the translation is the vector's magnitude.
Translates a circle from the point P1 to the point P2.
GAx2d GCirc2d.XAxis  (  ) 
returns the X axis of the circle.
GAx2d GCirc2d.YAxis  (  ) 
Returns the Y axis of the circle. Reverses the direction of the circle.