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

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

Wumpus.Drawing.Paths.RoundCorners

Description

Drawing round cornered polygons.

Synopsis

Documentation

cornerCurve :: (Real u, Floating u) => Point2 u -> Point2 u -> Point2 u -> Path uSource

The length of the control-point vector wants to be slighly longer than half of d (d - being the distance between the truncated points and the corner).

roundEvery :: (Real u, Floating u) => u -> [Point2 u] -> Path uSource

roundEvery throws a runtime error if the input list has less than 3 eleemnts.