Module

Data.Vector.Polymorphic.Types

#(><)

Operator alias for Data.Vector.Polymorphic.Types.Vector2 (non-associative / precedence 2)

#getX

getX :: forall a. Vector2 a -> a

Get the x value from a Vector2

#getY

getY :: forall a. Vector2 a -> a

Get the y value from a Vector2

#getPos

getPos :: forall a. Rect a -> Vector2 a

Get the topleft position of a Rect

#getSize

getSize :: forall a. Rect a -> Vector2 a

Get the size of a Rect

#makeRect

makeRect :: forall a. a -> a -> a -> a -> Rect a

Constructs a Rect from four values

Modules