geomancy-0.2.2.3: Geometry and matrix manipulation
Safe HaskellSafe-Inferred
LanguageHaskell2010

Geomancy.Vec2

Description

Specialized and inlined V2 Float.

Documentation

data Vec2 Source #

Instances

Instances details
Eq Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

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

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

Fractional Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

(/) :: Vec2 -> Vec2 -> Vec2 #

recip :: Vec2 -> Vec2 #

fromRational :: Rational -> Vec2 #

Num Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

(+) :: Vec2 -> Vec2 -> Vec2 #

(-) :: Vec2 -> Vec2 -> Vec2 #

(*) :: Vec2 -> Vec2 -> Vec2 #

negate :: Vec2 -> Vec2 #

abs :: Vec2 -> Vec2 #

signum :: Vec2 -> Vec2 #

fromInteger :: Integer -> Vec2 #

Ord Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

compare :: Vec2 -> Vec2 -> Ordering #

(<) :: Vec2 -> Vec2 -> Bool #

(<=) :: Vec2 -> Vec2 -> Bool #

(>) :: Vec2 -> Vec2 -> Bool #

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

max :: Vec2 -> Vec2 -> Vec2 #

min :: Vec2 -> Vec2 -> Vec2 #

Show Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

showsPrec :: Int -> Vec2 -> ShowS #

show :: Vec2 -> String #

showList :: [Vec2] -> ShowS #

Storable Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

sizeOf :: Vec2 -> Int #

alignment :: Vec2 -> Int #

peekElemOff :: Ptr Vec2 -> Int -> IO Vec2 #

pokeElemOff :: Ptr Vec2 -> Int -> Vec2 -> IO () #

peekByteOff :: Ptr b -> Int -> IO Vec2 #

pokeByteOff :: Ptr b -> Int -> Vec2 -> IO () #

peek :: Ptr Vec2 -> IO Vec2 #

poke :: Ptr Vec2 -> Vec2 -> IO () #

NFData Vec2 Source # 
Instance details

Defined in Geomancy.Vec2

Methods

rnf :: Vec2 -> () #

withVec2 :: Vec2 -> (Float -> Float -> r) -> r Source #

pattern WithVec2 :: Float -> Float -> Vec2 Source #