AnyCAD Rapid SDK
2020
The Rapid CAD SDK
|
Public Member Functions | |
synchronized void | delete () |
GPnt () | |
GPnt (GXYZ Coord) | |
GPnt (double Xp, double Yp, double Zp) | |
void | SetCoord (int Index, double Xi) |
void | SetCoord (double Xp, double Yp, double Zp) |
void | SetX (double X) |
void | SetY (double Y) |
void | SetZ (double Z) |
void | SetXYZ (GXYZ Coord) |
double | Coord (int Index) |
void | Coord (double[] Xp, double[] Yp, double[] Zp) |
double | X () |
double | Y () |
double | Z () |
GXYZ | XYZ () |
GXYZ | Coord () |
GXYZ | ChangeCoord () |
void | BaryCenter (double Alpha, GPnt P, double Beta) |
boolean | IsEqual (GPnt Other, double LinearTolerance) |
double | Distance (GPnt Other) |
double | SquareDistance (GPnt Other) |
void | Mirror (GPnt P) |
GPnt | Mirrored (GPnt P) |
void | Mirror (GAx1 A1) |
GPnt | Mirrored (GAx1 A1) |
void | Mirror (GAx2 A2) |
GPnt | Mirrored (GAx2 A2) |
void | Rotate (GAx1 A1, double Ang) |
GPnt | Rotated (GAx1 A1, double Ang) |
void | Scale (GPnt P, double S) |
GPnt | Scaled (GPnt P, double S) |
void | Transform (GTrsf T) |
GPnt | Transformed (GTrsf T) |
void | Translate (GVec V) |
GPnt | Translated (GVec V) |
void | Translate (GPnt P1, GPnt P2) |
GPnt | Translated (GPnt P1, GPnt P2) |
Protected Member Functions | |
GPnt (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Static Protected Member Functions | |
static long | getCPtr (GPnt obj) |
Protected Attributes | |
transient boolean | swigCMemOwn |
Defines a 3D cartesian point.
GPnt.GPnt | ( | ) |
Creates a point with zero coordinates.
GPnt.GPnt | ( | GXYZ | Coord | ) |
Creates a point from a XYZ object.
GPnt.GPnt | ( | double | Xp, |
double | Yp, | ||
double | Zp | ||
) |
Creates a point with its 3 cartesian's coordinates : Xp, Yp, Zp.
void GPnt.BaryCenter | ( | double | Alpha, |
GPnt | P, | ||
double | Beta | ||
) |
Assigns the result of the following expression to this point (Alpha*this + Beta*P) / (Alpha + Beta)
GXYZ GPnt.ChangeCoord | ( | ) |
Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value.
double GPnt.Coord | ( | int | Index | ) |
Returns the coordinate of corresponding to the value of Index : Index = 1 => X is returned Index = 2 => Y is returned Index = 3 => Z is returned Raises OutOfRange if Index != {1, 2, 3}. Raised if Index != {1, 2, 3}.
void GPnt.Coord | ( | double[] | Xp, |
double[] | Yp, | ||
double[] | Zp | ||
) |
For this point gives its three coordinates Xp, Yp and Zp.
GXYZ GPnt.Coord | ( | ) |
For this point, returns its three coordinates as a XYZ object.
double GPnt.Distance | ( | GPnt | Other | ) |
Computes the distance between two points.
boolean GPnt.IsEqual | ( | GPnt | Other, |
double | LinearTolerance | ||
) |
Comparison Returns True if the distance between the two points is lower or equal to LinearTolerance.
void GPnt.Mirror | ( | GPnt | P | ) |
Performs the symmetrical transformation of a point with respect to the point P which is the center of the symmetry.
Performs the symmetrical transformation of a point with respect to an axis placement which is the axis of the symmetry.
Performs the symmetrical transformation of a point with respect to a plane. The axis placement A2 locates the plane of the symmetry : (Location, XDirection, YDirection).
Rotates a point. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians.
void GPnt.SetCoord | ( | int | Index, |
double | Xi | ||
) |
Changes the coordinate of range Index : Index = 1 => X is modified Index = 2 => Y is modified Index = 3 => Z is modified Raised if Index != {1, 2, 3}.
void GPnt.SetCoord | ( | double | Xp, |
double | Yp, | ||
double | Zp | ||
) |
For this point, assigns the values Xp, Yp and Zp to its three coordinates.
void GPnt.SetX | ( | double | X | ) |
Assigns the given value to the X coordinate of this point.
void GPnt.SetXYZ | ( | GXYZ | Coord | ) |
Assigns the three coordinates of Coord to this point.
void GPnt.SetY | ( | double | Y | ) |
Assigns the given value to the Y coordinate of this point.
void GPnt.SetZ | ( | double | Z | ) |
Assigns the given value to the Z coordinate of this point.
double GPnt.SquareDistance | ( | GPnt | Other | ) |
Computes the square distance between two points.
Translates a point in the direction of the vector V. The magnitude of the translation is the vector's magnitude.
double GPnt.X | ( | ) |
For this point, returns its X coordinate.
GXYZ GPnt.XYZ | ( | ) |
For this point, returns its three coordinates as a XYZ object.
double GPnt.Y | ( | ) |
For this point, returns its Y coordinate.
double GPnt.Z | ( | ) |
For this point, returns its Z coordinate.