A line segment
| C# | Visual Basic | Visual C++ |
public struct LineSegment2D
Public Structure LineSegment2D
public value class LineSegment2D
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| LineSegment2D(Point, Point) |
Create a line segment with the specific starting point and end point
| |
| Direction | The direction of the line, the norm of which is 1 | |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetExteriorAngleDegree(LineSegment2D) |
Get the exterior angle between this line and otherLine | |
| GetHashCode()()() | Returns the hash code for this instance. (Inherited from ValueType.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Length |
Get the length of the line segment
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| P1 | A point on the line | |
| P2 | An other point on the line | |
| Side(Point) |
Determine which side of the line the 2D point is at
| |
| ToString()()() | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |