cnc-pattern-lib-0.1.0.0: Haskell library for creating SVG patterns for CNC routers

Safe HaskellNone
LanguageHaskell2010

Circle

Description

A type representing a circle.

Synopsis

Documentation

data Circle Source #

Constructors

Circle 

Fields

Instances
Eq Circle Source # 
Instance details

Defined in Circle

Methods

(==) :: Circle -> Circle -> Bool #

(/=) :: Circle -> Circle -> Bool #

Ord Circle Source # 
Instance details

Defined in Circle

Show Circle Source # 
Instance details

Defined in Circle

ApproxEq Circle Source # 
Instance details

Defined in Circle

Methods

approxEqual :: Circle -> Circle -> Float -> Bool Source #

(=~) :: Circle -> Circle -> Bool Source #

assertApproxEqual :: Circle -> Circle -> Float -> Assertion Source #

(@?~) :: Circle -> Circle -> Assertion Source #

Mergable Circle Source # 
Instance details

Defined in Circle

Transformable Circle Source # 
Instance details

Defined in Circle

SvgShape Circle Source # 
Instance details

Defined in Circle

Methods

toSvg :: Circle -> Svg Source #

circleAsTuple :: Circle -> ((Float, Float), Float) Source #

Convert a circle to a 2-tuple representation.

circumference :: Circle -> Float Source #

Caclulate the circumfrence of a circle.

circleCoords :: Circle -> Float -> Point Source #

Get coordinate on the circumfrance of a circle at the given angle (radians)