hgeometry-0.12.0.2: Geometric Algorithms, Data structures, and Data types.
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Directions

Description

 
Synopsis

Documentation

data CardinalDirection Source #

The four cardinal directions.

Constructors

North 
East 
South 
West 

Instances

Instances details
Bounded CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Enum CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Eq CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Ord CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Read CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Show CardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

oppositeDirection :: CardinalDirection -> CardinalDirection Source #

Computes the direction opposite to the given one.

data InterCardinalDirection Source #

Intercardinal directions

Instances

Instances details
Enum InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Eq InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Ord InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Read InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Show InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Generic InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

Associated Types

type Rep InterCardinalDirection :: Type -> Type #

type Rep InterCardinalDirection Source # 
Instance details

Defined in Data.Geometry.Directions

type Rep InterCardinalDirection = D1 ('MetaData "InterCardinalDirection" "Data.Geometry.Directions" "hgeometry-0.12.0.2-IMXeR0PuShPEjPCARytEWE" 'False) ((C1 ('MetaCons "NorthWest" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NorthEast" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SouthEast" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SouthWest" 'PrefixI 'False) (U1 :: Type -> Type)))

interCardinalsOf :: CardinalDirection -> Two InterCardinalDirection Source #

Get the two intercardinal directions, in increasing order, corresponding to the cardinal direction.