eventloop-0.4.0.0: 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-Inferred
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 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

Instances

class ToPolarCoord a where Source

Instances