oscpacking-0.3.0.0: Implements an osculatory packing (kissing circles) algorithm and display.

Maintainerch.howard@zoho.com
Safe HaskellSafe-Inferred

Graphics.OscPacking.Boundary

Description

 

Synopsis

Documentation

type Boundary = Point -> Maybe FloatSource

A Boundary is a function which takes a Point and determines if it is inside some area. If the Point is outside the area, it returns Nothing. Otherwise, it returns the distance to the edge of the area. Any such Boundary need not be a simple, traditional geometric shape. Though, it is often difficult to calculate the distance for more exotic shapes.

circleBSource

Arguments

:: Point

origin

-> Float

radius

-> Boundary 

Provides a Boundary for a circle of given origin and radius.

rectBSource

Arguments

:: Point

coordinate of the bottom left corner

-> Float

width

-> Float

height

-> Boundary 

Provides a Boundary for a rectangle of given origin and dimensions