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

Geomancy.IVec4

Description

Specialized and inlined V2 Int32.

Documentation

data IVec4 Source #

Instances

Instances details
Storable IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

sizeOf :: IVec4 -> Int #

alignment :: IVec4 -> Int #

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

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

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

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

peek :: Ptr IVec4 -> IO IVec4 #

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

Ix IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Num IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Show IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

showsPrec :: Int -> IVec4 -> ShowS #

show :: IVec4 -> String #

showList :: [IVec4] -> ShowS #

NFData IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

rnf :: IVec4 -> () #

Elementwise IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Eq IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

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

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

Ord IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

compare :: IVec4 -> IVec4 -> Ordering #

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

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

(>) :: IVec4 -> IVec4 -> Bool #

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

max :: IVec4 -> IVec4 -> IVec4 #

min :: IVec4 -> IVec4 -> IVec4 #

Block IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Associated Types

type PackedSize IVec4 :: Nat #

Methods

alignment140 :: proxy IVec4 -> Int #

sizeOf140 :: proxy IVec4 -> Int #

isStruct :: proxy IVec4 -> Bool #

read140 :: MonadIO m => Ptr a -> Diff a IVec4 -> m IVec4 #

write140 :: MonadIO m => Ptr a -> Diff a IVec4 -> IVec4 -> m () #

alignment430 :: proxy IVec4 -> Int #

sizeOf430 :: proxy IVec4 -> Int #

read430 :: MonadIO m => Ptr a -> Diff a IVec4 -> m IVec4 #

write430 :: MonadIO m => Ptr a -> Diff a IVec4 -> IVec4 -> m () #

sizeOfPacked :: proxy IVec4 -> Int #

readPacked :: MonadIO m => Ptr a -> Diff a IVec4 -> m IVec4 #

writePacked :: MonadIO m => Ptr a -> Diff a IVec4 -> IVec4 -> m () #

MonoFunctor IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

omap :: (Element IVec4 -> Element IVec4) -> IVec4 -> IVec4 #

MonoPointed IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

Methods

opoint :: Element IVec4 -> IVec4 #

type PackedSize IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

type PackedSize IVec4 = 16
type Element IVec4 Source # 
Instance details

Defined in Geomancy.IVec4

withIVec4 :: IVec4 -> (Int32 -> Int32 -> Int32 -> Int32 -> r) -> r Source #

pattern WithIVec4 :: Int32 -> Int32 -> Int32 -> Int32 -> IVec4 Source #

convert :: Coercible v IVec4 => (Int32 -> a) -> (a -> a -> a -> a -> r) -> v -> r Source #