wumpus-basic-0.14.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Kernel.Geometry.Paths

Description

Paths for elementary shapes - rectangles...

** - WARNING ** - half baked.

Synopsis

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.