sifflet-lib-1.2.5.1: Library of modules shared by sifflet and its tests and its exporters.

Safe HaskellSafe-Infered

Sifflet.Data.Geometry

Synopsis

Documentation

data Size Source

Constructors

Size 

Fields

sizeW :: Double
 
sizeH :: Double
 

Instances

data BBox Source

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

bbX, bbHeight, bbWidth, bbY :: BBox -> DoubleSource

BBox accessors and utilities

bbMerge :: BBox -> BBox -> BBoxSource

Form a new BBox which encloses two bboxes

class Widen a whereSource

Methods

widen :: a -> Double -> aSource

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

class Translate a whereSource

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

Methods

translateSource

Arguments

:: Double

delta X

-> Double

delta Y

-> a

thing in old position

-> a

thing in new position