C# Class DrewNoakes.QuadrilateralFinder.QuadrilateralFinder

Afficher le fichier Open project: drewnoakes/quadrilateral-finder Class Usage Examples

Méthodes publiques

Méthode Description
FindQuadrilateral ( IEnumerable lineSegments ) : DrewNoakes.QuadrilateralFinder.Intersection[]

Detects the most likely quadrilateral shape formed by four line segments from lineSegments. Possible solutions are evaluated based upon the closeness of corner angles to 90°, and penalties are assigned if line segments would intersect within their spans.

Private Methods

Méthode Description
CalculateError ( Intersection intersections ) : double
GetAcuteAngleBetweenPoints ( Vector2 p1, Vector2 p2, Vector2 p3 ) : double

Method Details

FindQuadrilateral() public static méthode

Detects the most likely quadrilateral shape formed by four line segments from lineSegments. Possible solutions are evaluated based upon the closeness of corner angles to 90°, and penalties are assigned if line segments would intersect within their spans.
public static FindQuadrilateral ( IEnumerable lineSegments ) : DrewNoakes.QuadrilateralFinder.Intersection[]
lineSegments IEnumerable
Résultat DrewNoakes.QuadrilateralFinder.Intersection[]