pianola-0.1.0: Remotely controlling Java Swing applications

Safe HaskellSafe-Inferred

Pianola.Geometry

Synopsis

Documentation

type Point2d = (Int, Int)Source

(x,y)

type Dimensions2d = (Int, Int)Source

(width,height)

class Geometrical g whereSource

Class of objects with rectangular shape and located in a two-dimensional plane.

Methods

nwcorner :: g -> Point2dSource

Position of the north-west corner.

dimensions :: g -> Dimensions2dSource

width :: g -> IntSource

height :: g -> IntSource

minX :: g -> IntSource

midX :: g -> IntSource

minY :: g -> IntSource

midY :: g -> IntSource

xband :: g -> IntervalSource

yband :: g -> IntervalSource

area :: g -> IntSource

midpoint :: g -> Point2dSource

Instances

sameLevelRightOf :: (Geometrical g1, Geometrical g2) => g1 -> g2 -> BoolSource

True if the second object is roughly at the same height and to the right of the first object.