HGamer3D-0.9.0: Toolset for the Haskell Game Programmer

Safe HaskellNone
LanguageHaskell98

HGamer3D.Data.Geometry2D

Description

Type definitions for 2D geometry

Synopsis

Documentation

data Point Source #

A point has two coordinates an x and y one

Constructors

Point 

Fields

Instances

Eq Point Source # 

Methods

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

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

Show Point Source # 

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

rectFromPoints :: (Point, Point) -> ScreenRect Source #

derive a rectangle from upper left and lower right points

pointsFromRect :: ScreenRect -> (Point, Point) Source #

get upper left and lower right point from a rect