Line |
public struct LineD2D
The LineD2D type exposes the following members.
| Name | Description | |
|---|---|---|
| Length | Gets the length of the line. | |
| LineVector | ||
| LineVectorNormalized | ||
| P0 | Gets the starting point of the line. | |
| P1 | Gets the end point of the line. | |
| Vector | Gets the vector from P0 to P1. |
| Name | Description | |
|---|---|---|
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from ValueType) | |
| GetPointAtLineFromRelativeValue | Gets the point at this line from a relative value. | |
| GetPoints | Gets the points of the line as enumeration. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Intersection | Calculates the intersection point of two lines. | |
| Reversed | Returns a line with opposite direction compared to this line. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| Transform | Transforms a line with the matrix m. | |
| WithP0 | Returns a new line with P0 set to the provided value. | |
| WithP1 | Returns a new line with P1 set to the provided value. | |
| WithRotationRadian | Creates a new line, which is a rotated version of this line (rotation around a given center point). |
| Name | Description | |
|---|---|---|
| Addition(LineD2D, VectorD2D) | Translate a line by adding a vector to both start and end point. | |
| Subtraction(LineD2D, VectorD2D) | Translate a line by subtracting a vector from both start and end point. |