The class provides some methods which are related to line segments: distance to point, finding intersection point, etc.
A line segment may be converted to a Line.
Sample usage:
// create a segment LineSegment segment = new LineSegment( new DoublePoint( 0, 0 ), new DoublePoint( 3, 4 ) ); // get segment's length double length = segment.Length; // get intersection point with a line DoublePoint? intersection = segment.GetIntersectionWith( new Line( new DoublePoint( -3, 8 ), new DoublePoint( 0, 4 ) ) );