hgeometry-0.11.0.0: Geometric Algorithms, Data structures, and Data types.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Directions

Synopsis

Documentation

data CardinalDirection Source #

Constructors

North 
East 
South 
West 
Instances
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
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.11.0.0-5Q7X7STHtn33ZJbJEL0QVy" 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.