AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
GPnt () | |
GPnt (GXYZ theCoord) | |
GPnt (double theXp, double theYp, double theZp) | |
void | SetCoord (int theIndex, double theXi) |
void | SetCoord (double theXp, double theYp, double theZp) |
void | SetX (double theX) |
void | SetY (double theY) |
void | SetZ (double theZ) |
void | SetXYZ (GXYZ theCoord) |
double | Coord (int theIndex) |
void | Coord (double[] theXp, double[] theYp, double[] theZp) |
double | X () |
double | Y () |
double | Z () |
GXYZ | XYZ () |
GXYZ | Coord () |
GXYZ | ChangeCoord () |
void | BaryCenter (double theAlpha, GPnt theP, double theBeta) |
boolean | IsEqual (GPnt theOther, double theLinearTolerance) |
double | Distance (GPnt theOther) |
double | SquareDistance (GPnt theOther) |
void | Mirror (GPnt theP) |
GPnt | Mirrored (GPnt theP) |
void | Mirror (GAx1 theA1) |
GPnt | Mirrored (GAx1 theA1) |
void | Mirror (GAx2 theA2) |
GPnt | Mirrored (GAx2 theA2) |
void | Rotate (GAx1 theA1, double theAng) |
GPnt | Rotated (GAx1 theA1, double theAng) |
void | Scale (GPnt theP, double theS) |
GPnt | Scaled (GPnt theP, double theS) |
void | Transform (GTrsf theT) |
GPnt | Transformed (GTrsf theT) |
void | Translate (GVec theV) |
GPnt | Translated (GVec theV) |
void | Translate (GPnt theP1, GPnt theP2) |
GPnt | Translated (GPnt theP1, GPnt theP2) |
Defines a 3D cartesian point.
GPnt.GPnt | ( | ) |
Creates a point with zero coordinates.
GPnt.GPnt | ( | GXYZ | theCoord | ) |
Creates a point from a XYZ object.
GPnt.GPnt | ( | double | theXp, |
double | theYp, | ||
double | theZp ) |
Creates a point with its 3 cartesian's coordinates : theXp, theYp, theZp.
void GPnt.BaryCenter | ( | double | theAlpha, |
GPnt | theP, | ||
double | theBeta ) |
Assigns the result of the following expression to this point (theAlpha*this + theBeta*theP) / (theAlpha + theBeta)
GXYZ GPnt.ChangeCoord | ( | ) |
Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value.
GXYZ GPnt.Coord | ( | ) |
For this point, returns its three coordinates as a XYZ object.
void GPnt.Coord | ( | double[] | theXp, |
double[] | theYp, | ||
double[] | theZp ) |
For this point gives its three coordinates theXp, theYp and theZp.
double GPnt.Coord | ( | int | theIndex | ) |
Returns the coordinate of corresponding to the value of theIndex : theIndex = 1 => X is returned theIndex = 2 => Y is returned theIndex = 3 => Z is returned Raises OutOfRange if theIndex != {1, 2, 3}. Raised if theIndex != {1, 2, 3}.
double GPnt.Distance | ( | GPnt | theOther | ) |
Computes the distance between two points.
boolean GPnt.IsEqual | ( | GPnt | theOther, |
double | theLinearTolerance ) |
Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance.
void GPnt.Mirror | ( | GPnt | theP | ) |
Performs the symmetrical transformation of a point with respect to the point theP which is the center of the symmetry.
Performs the symmetrical transformation of a point with respect to a plane. The axis placement theA2 locates the plane of the symmetry : (Location, XDirection, YDirection).
Rotates a point. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians.
Performs the symmetrical transformation of a point with respect to an axis placement which is the axis of the symmetry.
void GPnt.Scale | ( | GPnt | theP, |
double | theS ) |
Scales a point. theS is the scaling value.
void GPnt.SetCoord | ( | double | theXp, |
double | theYp, | ||
double | theZp ) |
For this point, assigns the values theXp, theYp and theZp to its three coordinates.
void GPnt.SetCoord | ( | int | theIndex, |
double | theXi ) |
Changes the coordinate of range theIndex : theIndex = 1 => X is modified theIndex = 2 => Y is modified theIndex = 3 => Z is modified Raised if theIndex != {1, 2, 3}.
void GPnt.SetX | ( | double | theX | ) |
Assigns the given value to the X coordinate of this point.
void GPnt.SetXYZ | ( | GXYZ | theCoord | ) |
Assigns the three coordinates of theCoord to this point.
void GPnt.SetY | ( | double | theY | ) |
Assigns the given value to the Y coordinate of this point.
void GPnt.SetZ | ( | double | theZ | ) |
Assigns the given value to the Z coordinate of this point.
double GPnt.SquareDistance | ( | GPnt | theOther | ) |
Computes the square distance between two points.
void GPnt.Transform | ( | GTrsf | theT | ) |
Transforms a point with the transformation T.
Translates a point from the point theP1 to the point theP2.
void GPnt.Translate | ( | GVec | theV | ) |
Translates a point in the direction of the vector theV. 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.