sifflet-2.3.0: Simple, visual, functional language for learning about recursion.

Safe HaskellNone
LanguageHaskell2010

Data.Sifflet.Geometry

Synopsis

Documentation

data Size Source

Constructors

Size 

Fields

sizeW :: Double
 
sizeH :: Double
 

data BBox Source

BBox x y width height; (x, y) is the top left corner

bbX :: BBox -> Double Source

BBox accessors and utilities

bbY :: BBox -> Double Source

BBox accessors and utilities

bbWidth :: BBox -> Double Source

BBox accessors and utilities

bbHeight :: BBox -> Double Source

BBox accessors and utilities

bbMerge :: BBox -> BBox -> BBox Source

Form a new BBox which encloses two bboxes

class Widen a where Source

Methods

widen :: a -> Double -> a Source

Make an object have at least a specified minimum width; does nothing if it's already at least that wide

class Translate a where Source

A Translate is a thing that can be repositioned by delta x and delta y

Methods

translate Source

Arguments

:: Double

delta X

-> Double

delta Y

-> a

thing in old position

-> a

thing in new position