| Safe Haskell | Safe-Inferred |
|---|
HGamer3D.Data.ScreenGeometry
Description
Type definitions for 2D geometry and windows
Windowing
A window is simply represented by it's window id, an unsigned C int
Geometry
A point has two coordinates an x and y one
A rectangle has an a position as x and y and widht and height
rectFromPoints :: Point -> Point -> RectangleSource
derive a rectangle from upper left and lower right points
pointsFromRect :: Rectangle -> (Point, Point)Source
get upper left and lower right point from a rect