Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Paths for elementary shapes - rectangles...
** - WARNING ** - half baked.
- rectanglePath :: Num u => u -> u -> Point2 u -> PrimPath u
- diamondPath :: Num u => u -> u -> Point2 u -> PrimPath u
- polygonPoints :: Floating u => Int -> u -> Point2 u -> [Point2 u]
- isoscelesTrianglePath :: Floating u => u -> u -> Point2 u -> PrimPath u
- isoscelesTrianglePoints :: Floating u => u -> u -> Point2 u -> (Point2 u, Point2 u, Point2 u)
- equilateralTrianglePath :: Floating u => u -> Point2 u -> PrimPath u
- equilateralTrianglePoints :: Floating u => u -> Point2 u -> (Point2 u, Point2 u, Point2 u)
Documentation
rectanglePath :: Num u => u -> u -> Point2 u -> PrimPath uSource
Supplied point is bottom-left.
diamondPath :: Num u => u -> u -> Point2 u -> PrimPath uSource
diamondPath
: half_width * half_height * center_point -> PrimPath
polygonPoints :: Floating u => Int -> u -> Point2 u -> [Point2 u]Source
polygonPoints
: num_points * radius * center -> [point]
isoscelesTrianglePath :: Floating u => u -> u -> Point2 u -> PrimPath uSource
isocelesTriangle bw h pt
Supplied point is the centriod of the triangle. This has a nicer visual balance than using half-height.
isoscelesTrianglePoints :: Floating u => u -> u -> Point2 u -> (Point2 u, Point2 u, Point2 u)Source
isocelesTriangle bw h pt
Supplied point is the centriod of the triangle. This has a nicer visual balance than using half-height.
equilateralTrianglePath :: Floating u => u -> Point2 u -> PrimPath uSource