eventloop-0.4.1.2: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellSafe
LanguageHaskell2010

Eventloop.Utility.Vectors

Documentation

type Angle Source

Arguments

 = Float

In degrees

type X = Float Source

type Y = Float Source

type Offset = (X, Y) Source

class Translate a where Source

Methods

translate :: Point -> a -> a Source

class RotateLeftAround a => Vector2D a where Source

Methods

(|+|) :: a -> a -> a Source

(|-|) :: a -> a -> a Source

negateVector :: a -> a Source

class ToPoint a where Source

Methods

toPoint :: a -> Point Source