AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
GPnt类 参考

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() [1/3]

GPnt.GPnt ( )

Creates a point with zero coordinates.

◆ GPnt() [2/3]

GPnt.GPnt ( GXYZ theCoord)

Creates a point from a XYZ object.

◆ GPnt() [3/3]

GPnt.GPnt ( double theXp,
double theYp,
double theZp )

Creates a point with its 3 cartesian's coordinates : theXp, theYp, theZp.

成员函数说明

◆ BaryCenter()

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)

◆ ChangeCoord()

GXYZ GPnt.ChangeCoord ( )

Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value.

◆ Coord() [1/3]

GXYZ GPnt.Coord ( )

For this point, returns its three coordinates as a XYZ object.

◆ Coord() [2/3]

void GPnt.Coord ( double[] theXp,
double[] theYp,
double[] theZp )

For this point gives its three coordinates theXp, theYp and theZp.

◆ Coord() [3/3]

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}.

◆ Distance()

double GPnt.Distance ( GPnt theOther)

Computes the distance between two points.

◆ IsEqual()

boolean GPnt.IsEqual ( GPnt theOther,
double theLinearTolerance )

Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance.

◆ Mirror()

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.

◆ Mirrored() [1/3]

GPnt GPnt.Mirrored ( GAx1 theA1)

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).

◆ Mirrored() [2/3]

GPnt GPnt.Mirrored ( GAx2 theA2)

Rotates a point. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians.

◆ Mirrored() [3/3]

GPnt GPnt.Mirrored ( GPnt theP)

Performs the symmetrical transformation of a point with respect to an axis placement which is the axis of the symmetry.

◆ Scale()

void GPnt.Scale ( GPnt theP,
double theS )

Scales a point. theS is the scaling value.

◆ SetCoord() [1/2]

void GPnt.SetCoord ( double theXp,
double theYp,
double theZp )

For this point, assigns the values theXp, theYp and theZp to its three coordinates.

◆ SetCoord() [2/2]

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}.

◆ SetX()

void GPnt.SetX ( double theX)

Assigns the given value to the X coordinate of this point.

◆ SetXYZ()

void GPnt.SetXYZ ( GXYZ theCoord)

Assigns the three coordinates of theCoord to this point.

◆ SetY()

void GPnt.SetY ( double theY)

Assigns the given value to the Y coordinate of this point.

◆ SetZ()

void GPnt.SetZ ( double theZ)

Assigns the given value to the Z coordinate of this point.

◆ SquareDistance()

double GPnt.SquareDistance ( GPnt theOther)

Computes the square distance between two points.

◆ Transform()

void GPnt.Transform ( GTrsf theT)

Transforms a point with the transformation T.

◆ Translate() [1/2]

void GPnt.Translate ( GPnt theP1,
GPnt theP2 )

Translates a point from the point theP1 to the point theP2.

◆ Translate() [2/2]

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.

◆ X()

double GPnt.X ( )

For this point, returns its X coordinate.

◆ XYZ()

GXYZ GPnt.XYZ ( )

For this point, returns its three coordinates as a XYZ object.

◆ Y()

double GPnt.Y ( )

For this point, returns its Y coordinate.

◆ Z()

double GPnt.Z ( )

For this point, returns its Z coordinate.