brillo-algorithms-1.13.3: Data structures and algorithms for working with 2D graphics.
Safe HaskellSafe-Inferred
LanguageGHC2021

Brillo.Data.Quad

Synopsis

Documentation

data Quad Source #

Represents a Quadrant in the 2D plane.

Constructors

NW

North West

NE

North East

SW

South West

SE

South East

Instances

Instances details
Enum Quad Source # 
Instance details

Defined in Brillo.Data.Quad

Methods

succ :: Quad -> Quad #

pred :: Quad -> Quad #

toEnum :: Int -> Quad #

fromEnum :: Quad -> Int #

enumFrom :: Quad -> [Quad] #

enumFromThen :: Quad -> Quad -> [Quad] #

enumFromTo :: Quad -> Quad -> [Quad] #

enumFromThenTo :: Quad -> Quad -> Quad -> [Quad] #

Show Quad Source # 
Instance details

Defined in Brillo.Data.Quad

Methods

showsPrec :: Int -> Quad -> ShowS #

show :: Quad -> String #

showList :: [Quad] -> ShowS #

Eq Quad Source # 
Instance details

Defined in Brillo.Data.Quad

Methods

(==) :: Quad -> Quad -> Bool #

(/=) :: Quad -> Quad -> Bool #

allQuads :: [Quad] Source #

A list of all quadrants. Same as [NW .. SE].