Safe Haskell | None |
---|
Basic cartesian geometry operations on 2D points.
Documentation
newtype PointXY
2D points in cartesian representation.
fromTo :: PointXY -> PointXY -> [PointXY]
A list of all points on a straight vertical or straight horizontal line between two points. Fails if no such line exists.
sortPointXY :: (PointXY, PointXY) -> (PointXY, PointXY)
Sort the sequence of two points, in the derived lexicographic order.