Click or drag to resize
DigitalRuneLineSegment Structure
Defines a line segment.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
[SerializableAttribute]
public struct LineSegment : IEquatable<LineSegment>

The LineSegment type exposes the following members.

Constructors
  NameDescription
Public methodLineSegment(LineSegmentShape)
Initializes a new instance of LineSegment from a LineSegmentShape.
Public methodLineSegment(Vector3F, Vector3F)
Initializes a new instance of LineSegment from two points.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Tests if two LineSegments are equal.
Public operatorStatic memberInequality
Tests if two LineSegments are different.
Top
Fields
  NameDescription
Public fieldEnd
The end point.
Public fieldStart
The start point.
Top
Properties
  NameDescription
Public propertyLength
Gets the length.
Public propertyLengthSquared
Gets the squared length.
Top
Remarks

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.)

See Also