Module

Data.Vector.Polymorphic.Types

Package
purescript-polymorphic-vectors
Repository
artemisSystem/purescript-polymorphic-vectors

#(><) Source

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

#getX Source

getX :: forall a. Vector2 a -> a

Get the x value from a Vector2

#getY Source

getY :: forall a. Vector2 a -> a

Get the y value from a Vector2

#getPos Source

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

Get the topleft position of a Rect

#getSize Source

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

Get the size of a Rect

#makeRect Source

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

Constructs a Rect from four values