C# Class Vertesaur.SegmentOperation.SegmentIntersectionOperation

An operation that will find the geometric result of intersecting two segments.
Afficher le fichier Open project: aarondandy/vertesaur

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat IPlanarGeometry

Intersection() public static méthode

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

IntersectionDetails() public static méthode

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.
Résultat IResult

IntersectionDetails() public static méthode

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