LineSegment Structure |
Namespace: DigitalRune.Geometry.Shapes
The LineSegment type exposes the following members.
Name | Description | |
---|---|---|
LineSegment(LineSegmentShape) |
Initializes a new instance of LineSegment from a
LineSegmentShape.
| |
LineSegment(Vector3F, Vector3F) |
Initializes a new instance of LineSegment from two points.
|
Name | Description | |
---|---|---|
Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
Equals(LineSegment) |
Determines whether the specified LineSegment is equal to the current
LineSegment.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | (Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Tests if two LineSegments are equal.
| |
Inequality |
Tests if two LineSegments are different.
|
Name | Description | |
---|---|---|
Length |
Gets the length.
| |
LengthSquared |
Gets the squared length.
|
This is a lightweight structure. To define a line segment shape for IGeometricObject use LineSegmentShape.
Two LineSegments are considered as equal if there end points are equal and in the same order. (Line segments are not equal if Start and End are swapped.)