Orasund/elm-game-essentials/1.0.0

NOTE: the latest version is 3.0.0

Grid.Direction

= Up
| Down
| Left
| Right

A abstract concept of a direction on a grid.

Rotates a Direction for 180 Degrees.

Up
|> flip
--> Down
Left
|> flip
--> Right

Rotates a Direction clockwise

Up
|> rotLeft
|> Left

Rotates a Direction counter-clockwise

Up
|> rotRight
|> Right