Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- An interface for vector-like data which is orientated to the edges of the board.
Synopsis
- class Orientated a where
- isDiagonal :: a -> Bool
- isParallel :: a -> Bool
- isStraight :: a -> Bool
Type-classes
class Orientated a where Source #
An interface for vector-like data.
:: a | |
-> Bool | Whether it is diagonal wrt the edges of the board. |
:: a | |
-> Bool | Whether it is parallel to an edge of the board. |
isStraight :: a -> Bool Source #
Instances
Orientated Direction Source # | |
Defined in BishBosh.Attribute.Direction isDiagonal :: Direction -> Bool Source # isParallel :: Direction -> Bool Source # isStraight :: Direction -> Bool Source # | |
(Eq distance, Num distance) => Orientated (Vector distance) Source # | |
Defined in BishBosh.Cartesian.Vector isDiagonal :: Vector distance -> Bool Source # isParallel :: Vector distance -> Bool Source # isStraight :: Vector distance -> Bool Source # | |
(Enum x, Enum y) => Orientated (Move x y) Source # | |
Defined in BishBosh.Component.Move isDiagonal :: Move x y -> Bool Source # isParallel :: Move x y -> Bool Source # isStraight :: Move x y -> Bool Source # |