GeomPredicates-0.1: Geometric predicates

Numeric.Geometric.Predicates.Rational

Synopsis

Documentation

ccwSource

Arguments

:: Vector2 Rational 
-> Vector2 Rational 
-> Vector2 Rational 
-> Ordering

LT=Right, GT=Left, EQ=Coincident

Counter-clockwise orientation test. Classifies p3 in relation to the line formed by p1 and p2.

incircleSource

Arguments

:: (Vector2 Rational, Vector2 Rational, Vector2 Rational)

3 points on the circle, must be in counterclockwise order.

-> Vector2 Rational

Query point

-> Ordering

GT=inside, EQ=border, LT=outside

Test the relation of a point to the circle formed by (p1..p3).

cinttSource

Arguments

:: Rational

Lo

-> Rational

Hi

-> Rational

Point

-> Bool 

Test if Point is within the closed interval specified

isctp :: LineSegment (Vector2 Rational) -> LineSegment (Vector2 Rational) -> Vector2 RationalSource

Calculate the point of intersecton. Assumes the input lines are already known to be intersecting,