Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | stephen.tetley@gmail.com |
** WARNING ** - function names likely to change.
Constants (might move from this module)
Generate points.
polygonPointsV :: Floating u => Int -> u -> Point2 u -> [Point2 u]Source
polygonPointsV
: num_points * radius * center -> [point]
hpoints :: RealFrac u => u -> u -> (u, u) -> [Point2 u]Source
hpoints
: ypos * step * (x0,x1) -> [point]
Generate points in a horizontal line between x0 and x1.
Note - the step increment is w.r.t. 0 rather than x0. x0 and x1 are just the range. An example:
hpoints 0 10 (5,35)
[P2 10 0, P2 20 0, P2 30 0]
vpoints :: RealFrac u => u -> u -> (u, u) -> [Point2 u]Source
vpoints
: xpos * step * (y0,y1) -> [point]
Generate points in a vertical line between y0 and y1.
Note - the step increment is w.r.t. 0 rather than y0. y0 and y1 are just the range. An example:
vpoints 5 100 (50,500)
[P2 5 100, P2 5 200, P2 5 300, P2 5 400]