Struct Point2D
Represents a geometric 2D point.
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: TopSolid.Kernel.Automating.dll
Syntax
[DataContract]
[AvailableSinceVersion(7, 6, 0, 0)]
public struct Point2D
Remarks
This structure is available since v7.6.
Constructors
| Name | Description |
|---|---|
| Point2D(double, double) | Initializes a new instance of the Point2D structure with its coordinates. |
Fields
| Name | Description |
|---|---|
| P0 | Origin point, i.e. (0,0). |
| PX | X unit point, i.e. (1,0). |
| PY | Y unit point, i.e. (0,1). |
| X | X coordinate. |
| Y | Y coordinate. |
Methods
| Name | Description |
|---|---|
| CoincidesWith(Point2D) | Tells whether this point coincides with another point. |
Operators
| Name | Description |
|---|---|
| operator +(Point2D, Point2D) | Adds two points. |
| operator +(Point2D, Vector2D) | Adds a point and a vector. |
| operator |(Point2D, Point2D) | Computes the vector from one point to another point. |
| operator /(Point2D, double) | Divides a point by a double value. |
| operator *(double, Point2D) | Multiplies a double value and a point. |
| operator *(Point2D, double) | Multiplies a point and a double value. |
| operator -(Point2D, Vector2D) | Subtracts a point and a vector. |