Advent.Coord3
Description
data Coord3 Source #
Constructors
Defined in Advent.Coord3
Methods
(==) :: Coord3 -> Coord3 -> Bool #
(/=) :: Coord3 -> Coord3 -> Bool #
compare :: Coord3 -> Coord3 -> Ordering #
(<) :: Coord3 -> Coord3 -> Bool #
(<=) :: Coord3 -> Coord3 -> Bool #
(>) :: Coord3 -> Coord3 -> Bool #
(>=) :: Coord3 -> Coord3 -> Bool #
max :: Coord3 -> Coord3 -> Coord3 #
min :: Coord3 -> Coord3 -> Coord3 #
showsPrec :: Int -> Coord3 -> ShowS #
show :: Coord3 -> String #
showList :: [Coord3] -> ShowS #
origin :: Coord3 Source #
manhattan :: Coord3 -> Coord3 -> Int Source #
diff :: Coord3 -> Coord3 -> Coord3 Source #
add :: Coord3 -> Coord3 -> Coord3 Source #