juicy-draw-0.2.0.0: Draw and fill lines, rectangles and polygons

Copyright(C) Richard Cook 2018
LicenseMIT
Maintainerrcook@rcook.org
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Codec.Picture.Geometry

Description

Essential geometric functions to generate 2D shapes and paths

Synopsis

Documentation

type FPoint2D = (Double, Double) Source #

2D coordinate

type Point2D = (Int, Int) Source #

2D coordinate

centroid Source #

Arguments

:: [Point2D]

sequence of vertices

-> Maybe FPoint2D

centroid

Compute the centroid of a polygon

clockwise Source #

Arguments

:: [Point2D]

sequence of vertices

-> [Point2D]

sequence of vertices

Sequence of vertices in clockwise order relative to its centroid

closed Source #

Arguments

:: [Point2D]

sequence of vertices

-> [Point2D]

sequence of vertices

Closed sequence of vertices