|
AnyCAD Rapid API 2026
Help you to create a better world!
|
Defines a non-persistent 2D cartesian point. 更多...
Public 成员函数 | |
| GPnt2d (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| GPnt2d () | |
| Creates a point with zero coordinates. | |
| GPnt2d (GXY theCoord) | |
| Creates a point with a doublet of coordinates. | |
| GPnt2d (double theXp, double theYp) | |
| Creates a point with its 2 cartesian's coordinates : theXp, theYp. | |
| void | SetCoord (int theIndex, double theXi) |
| Assigns the value Xi to the coordinate that corresponds to theIndex: theIndex = 1 => X is modified theIndex = 2 => Y is modified Raises OutOfRange if theIndex != {1, 2}. | |
| void | SetCoord (double theXp, double theYp) |
| For this point, assigns the values theXp and theYp to its two 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 | SetXY (GXY theCoord) |
| Assigns the two coordinates of Coord to this point. | |
| double | Coord (int theIndex) |
| Returns the coordinate of range theIndex : theIndex = 1 => X is returned theIndex = 2 => Y is returned Raises OutOfRange if theIndex != {1, 2}. | |
| void | Coord (ref double theXp, ref double theYp) |
| For this point returns its two coordinates as a number pair. | |
| double | X () |
| For this point, returns its X coordinate. | |
| double | Y () |
| For this point, returns its Y coordinate. | |
| GXY | XY () |
| For this point, returns its two coordinates as a number pair. | |
| GXY | Coord () |
| For this point, returns its two coordinates as a number pair. | |
| GXY | ChangeCoord () |
| Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value. | |
| bool | IsEqual (GPnt2d theOther, double theLinearTolerance) |
| Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance. | |
| double | Distance (GPnt2d theOther) |
| Computes the distance between two points. | |
| double | SquareDistance (GPnt2d theOther) |
| Computes the square distance between two points. | |
| void | Mirror (GPnt2d theP) |
| Performs the symmetrical transformation of a point with respect to the point theP which is the center of the symmetry. | |
| GPnt2d | Mirrored (GPnt2d theP) |
| Performs the symmetrical transformation of a point with respect to an axis placement which is the axis | |
| void | Mirror (GAx2d theA) |
| GPnt2d | Mirrored (GAx2d theA) |
| void | Rotate (GPnt2d theP, double theAng) |
| Rotates a point. theA1 is the axis of the rotation. Ang is the angular value of the rotation in radians. | |
| GPnt2d | Rotated (GPnt2d theP, double theAng) |
| void | Scale (GPnt2d theP, double theS) |
| Scales a point. theS is the scaling value. | |
| GPnt2d | Scaled (GPnt2d theP, double theS) |
| void | Transform (GTrsf2d theT) |
| Transforms a point with the transformation theT. | |
| GPnt2d | Transformed (GTrsf2d theT) |
| void | Translate (GVec2d theV) |
| Translates a point in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. | |
| GPnt2d | Translated (GVec2d theV) |
| void | Translate (GPnt2d theP1, GPnt2d theP2) |
| Translates a point from the point theP1 to the point theP2. | |
| GPnt2d | Translated (GPnt2d theP1, GPnt2d theP2) |
| override bool | Equals (object obj) |
| 判断是否相等 | |
| override int | GetHashCode () |
| 返回对象的哈希值 | |
| override string | ToString () |
| 转换成字符串 | |
属性 | |
| double | x [get, set] |
| double | y [get, set] |
Defines a non-persistent 2D cartesian point.
2D的点
| override bool AnyCAD.Foundation.GPnt2d.Equals | ( | object | obj | ) |
判断是否相等
| obj | 比较的对象 |
| override int AnyCAD.Foundation.GPnt2d.GetHashCode | ( | ) |
返回对象的哈希值
| override string AnyCAD.Foundation.GPnt2d.ToString | ( | ) |
转换成字符串