|
AnyCAD Rapid API 2026
Help you to create a better world!
|
Defines a 3D cartesian point. 更多...
Public 成员函数 | |
| GPnt (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| GPnt () | |
| Creates a point with zero coordinates. | |
| GPnt (GXYZ theCoord) | |
| Creates a point from a XYZ object. | |
| GPnt (double theXp, double theYp, double theZp) | |
| Creates a point with its 3 cartesian's coordinates : theXp, theYp, theZp. | |
| void | 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 | SetCoord (double theXp, double theYp, double theZp) |
| For this point, assigns the values theXp, theYp and theZp to its three coordinates. | |
| void | SetX (double theX) |
| Assigns the given value to the X coordinate of this point. | |
| void | SetY (double theY) |
| Assigns the given value to the Y coordinate of this point. | |
| void | SetZ (double theZ) |
| Assigns the given value to the Z coordinate of this point. | |
| void | SetXYZ (GXYZ theCoord) |
| Assigns the three coordinates of theCoord to this point. | |
| double | 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}. | |
| void | Coord (ref double theXp, ref double theYp, ref double theZp) |
| For this point gives its three coordinates theXp, theYp and theZp. | |
| double | X () |
| For this point, returns its X coordinate. | |
| double | Y () |
| For this point, returns its Y coordinate. | |
| double | Z () |
| For this point, returns its Z coordinate. | |
| GXYZ | XYZ () |
| For this point, returns its three coordinates as a XYZ object. | |
| GXYZ | Coord () |
| For this point, returns its three coordinates as a XYZ object. | |
| GXYZ | ChangeCoord () |
| Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value. | |
| void | BaryCenter (double theAlpha, GPnt theP, double theBeta) |
| Assigns the result of the following expression to this point (theAlpha*this + theBeta*theP) / (theAlpha + theBeta) | |
| bool | IsEqual (GPnt theOther, double theLinearTolerance) |
| Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance. | |
| double | Distance (GPnt theOther) |
| Computes the distance between two points. | |
| double | SquareDistance (GPnt theOther) |
| Computes the square distance between two points. | |
| void | Mirror (GPnt theP) |
| Performs the symmetrical transformation of a point with respect to the point theP which is the center of the symmetry. | |
| GPnt | Mirrored (GPnt theP) |
| Performs the symmetrical transformation of a point with respect to an axis placement which is the axis of the symmetry. | |
| void | Mirror (GAx1 theA1) |
| 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). | |
| void | Mirror (GAx2 theA2) |
| GPnt | Mirrored (GAx2 theA2) |
| Rotates a point. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. | |
| void | Rotate (GAx1 theA1, double theAng) |
| GPnt | Rotated (GAx1 theA1, double theAng) |
| void | Scale (GPnt theP, double theS) |
| Scales a point. theS is the scaling value. | |
| GPnt | Scaled (GPnt theP, double theS) |
| void | Transform (GTrsf theT) |
| Transforms a point with the transformation T. | |
| GPnt | Transformed (GTrsf theT) |
| void | Translate (GVec theV) |
| Translates a point in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. | |
| GPnt | Translated (GVec theV) |
| void | Translate (GPnt theP1, GPnt theP2) |
| Translates a point from the point theP1 to the point theP2. | |
| GPnt | Translated (GPnt theP1, GPnt theP2) |
| GPnt (Vector3d p) | |
| GPnt (Vector3 p) | |
| GPnt | Clone () |
| override bool | Equals (object obj) |
| 判断是否相等 | |
| override int | GetHashCode () |
| 返回对象的哈希值 | |
| override string | ToString () |
| 转换成字符串 | |
静态 Public 成员函数 | |
| static GPnt | operator+ (GPnt a, GVec b) |
| static GVec | operator- (GPnt a, GPnt b) |
| 两个点之间的向量。由b指向a | |
| static GPnt | operator- (GPnt a, GVec b) |
| static GPnt | operator+ (GPnt a, Vector3d b) |
| static GPnt | operator- (GPnt a, Vector3d b) |
| static GPnt | operator+ (GPnt a, Vector3 b) |
| static GPnt | operator- (GPnt a, Vector3 b) |
属性 | |
| double | x [get, set] |
| double | y [get, set] |
| double | z [get, set] |
Defines a 3D cartesian point.
点
| override bool AnyCAD.Foundation.GPnt.Equals | ( | object | obj | ) |
判断是否相等
| obj | 比较的对象 |
| override int AnyCAD.Foundation.GPnt.GetHashCode | ( | ) |
返回对象的哈希值
两个点之间的向量。由b指向a
| a | 终止点 |
| b | 起始点 |
| override string AnyCAD.Foundation.GPnt.ToString | ( | ) |
转换成字符串