Safe Haskell | Safe-Inferred |
---|
Path type and functions.
- data Path
- (+++) :: Path -> Path -> Path
- line :: [Pt Double] -> Path
- polygon :: [Pt Double] -> Path
- rectangle :: Pt Double -> Double -> Double -> Path
- arc :: Pt Double -> Double -> Double -> Double -> Path
- arcNegative :: Pt Double -> Double -> Double -> Double -> Path
- annular :: Pt Double -> Double -> Double -> Double -> Double -> Path
- flatten :: Path -> Path
- renderLines :: [Ln Double] -> Path
- renderLines' :: [Ln Double] -> Path
Documentation
Path data type,in cartesian space.
rectangle :: Pt Double -> Double -> Double -> PathSource
Rectangle with lower left at Pt
and of specified width and
height. Polygon is ordered anticlockwise from lower left.
arc :: Pt Double -> Double -> Double -> Double -> PathSource
Arc given by a central point,a radius,and start and end angles.
Apply any transformations at path. The resulting path will not
have any PTransform
nodes.
renderLines :: [Ln Double] -> PathSource
Render each (p1,p2) as a distinct line.
renderLines' :: [Ln Double] -> PathSource
Collapse line sequences into a single line.