Portability | GHC |
---|---|

Stability | highly unstable |

Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |

Drawing round cornered polygons.

- cornerCurve :: (Real u, Floating u) => Point2 u -> Point2 u -> Point2 u -> Path u
- illustratePath :: Fractional u => Path u -> Graphic u
- roundEvery :: (Real u, Floating u) => u -> [Point2 u] -> Path u

# 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).

illustratePath :: Fractional u => Path u -> Graphic uSource