wumpus-basic-0.5.0: Common drawing utilities built on wumpus-core.Source codeContentsIndex
Wumpus.Basic.Graphic.PointSupply
PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com
Contents
Constants (might move from this module)
Generate points.
Description
** WARNING ** - function names likely to change.
Synopsis
two_pi :: Radian
half_pi :: Radian
polygonPointsV :: Floating u => Int -> u -> Point2 u -> [Point2 u]
hpoints :: RealFrac u => u -> u -> (u, u) -> [Point2 u]
vpoints :: RealFrac u => u -> u -> (u, u) -> [Point2 u]
Constants (might move from this module)
two_pi :: RadianSource
half_pi :: RadianSource
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]
Produced by Haddock version 2.6.1