C# Class Vertesaur.SegmentOperation.SegmentIntersectionOperation

An operation that will find the geometric result of intersecting two segments.
Show file Open project: aarondandy/vertesaur

Public Methods

Method Description
Intersection ( Point2 a, Point2 b, Point2 c, Point2 d ) : IPlanarGeometry

Calculates the intersection between two segments defined by four points.

Intersection ( Segment2 a, Segment2 b ) : IPlanarGeometry

Calculates the intersection between two segments.

IntersectionDetails ( Point2 a, Point2 b, Point2 c, Point2 d ) : IResult

Calculates the intersection between two segments defined by four points.

IntersectionDetails ( Segment2 a, Segment2 b ) : IResult

Calculates the intersection between two segments.

Private Methods

Method Description
ClassifyIntersectionType ( double v ) : SegmentIntersectionType
IntersectionDetailsParallel ( System.Vector2 d0, System.Vector2 d1, System.Vector2 e, Point2 a, Point2 b, Point2 c, Point2 d ) : IResult

Method Details

Intersection() public static method

Calculates the intersection between two segments defined by four points.
public static Intersection ( Point2 a, Point2 b, Point2 c, Point2 d ) : IPlanarGeometry
a Point2 The first point of the first segment.
b Point2 The second point of the first segment.
c Point2 The first point of the second segment.
d Point2 The second point of the second segment.
return IPlanarGeometry

Intersection() public static method

Calculates the intersection between two segments.
public static Intersection ( Segment2 a, Segment2 b ) : IPlanarGeometry
a Segment2 The first segment.
b Segment2 The second segment.
return IPlanarGeometry

IntersectionDetails() public static method

Calculates the intersection between two segments defined by four points.
public static IntersectionDetails ( Point2 a, Point2 b, Point2 c, Point2 d ) : IResult
a Point2 The first point of the first segment.
b Point2 The second point of the first segment.
c Point2 The first point of the second segment.
d Point2 The second point of the second segment.
return IResult

IntersectionDetails() public static method

Calculates the intersection between two segments.
public static IntersectionDetails ( Segment2 a, Segment2 b ) : IResult
a Segment2 The first segment.
b Segment2 The second segment.
return IResult