SegmentRelation

Namespace: Digi21.Math
Assembly: Digi21.DigiNG

Relative position of the infinite lines through the endpoints of two Segment values. Returned by Segment.AnalyzeRelation (in space) and Segment.AnalyzeRelationPlaneXY (in the X, Y plane).

public enum SegmentRelation

Calculation uses the infinite lines rather than the segments: two segments with a Cutted relation may not touch if the lines' intersection lies outside either segment.

Values

Value Number Meaning
Crossed 0 The lines are skew: nonparallel and not in the same plane. Returned only by AnalyzeRelation.
Cutted 1 The lines intersect at one point.
Paralel 2 The lines are parallel and distinct.
Coincident 3 Both lines are the same line.

Example

The Segment example compares two segments' relation in space and in the X, Y plane.