cnc-pattern-lib-0.1.0.0: Haskell library for creating SVG patterns for CNC routers
Hexagon
Description
A type representing a hexagon.
data Hexagon Source #
Constructors
Fields
Defined in Hexagon
Methods
(==) :: Hexagon -> Hexagon -> Bool #
(/=) :: Hexagon -> Hexagon -> Bool #
compare :: Hexagon -> Hexagon -> Ordering #
(<) :: Hexagon -> Hexagon -> Bool #
(<=) :: Hexagon -> Hexagon -> Bool #
(>) :: Hexagon -> Hexagon -> Bool #
(>=) :: Hexagon -> Hexagon -> Bool #
max :: Hexagon -> Hexagon -> Hexagon #
min :: Hexagon -> Hexagon -> Hexagon #
showsPrec :: Int -> Hexagon -> ShowS #
show :: Hexagon -> String #
showList :: [Hexagon] -> ShowS #
approxEqual :: Hexagon -> Hexagon -> Float -> Bool Source #
(=~) :: Hexagon -> Hexagon -> Bool Source #
assertApproxEqual :: Hexagon -> Hexagon -> Float -> Assertion Source #
(@?~) :: Hexagon -> Hexagon -> Assertion Source #
merge :: Hexagon -> Hexagon -> Float -> Maybe Hexagon Source #
optimize :: [Hexagon] -> Float -> [Hexagon] Source #
translate :: Point -> Hexagon -> Hexagon Source #
translatePoints :: [Point] -> Hexagon -> [Hexagon] Source #
rotate :: Point -> Float -> Hexagon -> Hexagon Source #
mirror :: Point -> Point -> Hexagon -> Hexagon Source #
offset :: Point -> Bool -> Hexagon -> Hexagon Source #
toSvg :: Hexagon -> Svg Source #
asLines :: Hexagon -> [Line] Source #
hexagonAsTuple :: Hexagon -> ((Float, Float), Float) Source #
Convert a circle to a 2-tuple representation.