Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Clutter.Structs.Matrix
Description
Synopsis
- newtype Matrix = Matrix (ManagedPtr Matrix)
- matrixAlloc :: (HasCallStack, MonadIO m) => m Matrix
- matrixFree :: (HasCallStack, MonadIO m) => Maybe Matrix -> m ()
- matrixInitFromArray :: (HasCallStack, MonadIO m) => Matrix -> [Float] -> m Matrix
- matrixInitFromMatrix :: (HasCallStack, MonadIO m) => Matrix -> Matrix -> m Matrix
- matrixInitIdentity :: (HasCallStack, MonadIO m) => Matrix -> m Matrix
Exported types
Memory-managed wrapper type.
Instances
Eq Matrix Source # | |
GBoxed Matrix Source # | |
Defined in GI.Clutter.Structs.Matrix | |
ManagedPtrNewtype Matrix Source # | |
Defined in GI.Clutter.Structs.Matrix Methods toManagedPtr :: Matrix -> ManagedPtr Matrix | |
TypedObject Matrix Source # | |
Defined in GI.Clutter.Structs.Matrix | |
HasParentTypes Matrix Source # | |
Defined in GI.Clutter.Structs.Matrix | |
IsGValue (Maybe Matrix) Source # | Convert |
Defined in GI.Clutter.Structs.Matrix Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Matrix -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Matrix) | |
type ParentTypes Matrix Source # | |
Defined in GI.Clutter.Structs.Matrix |
Methods
Click to display all available methods, including inherited ones
alloc
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Matrix | Returns: the newly allocated |
Allocates enough memory to hold a Matrix
.
Since: 1.12
free
Arguments
:: (HasCallStack, MonadIO m) | |
=> Maybe Matrix |
|
-> m () |
Frees the memory allocated by matrixAlloc
.
Since: 1.12
initFromArray
Arguments
:: (HasCallStack, MonadIO m) | |
=> Matrix |
|
-> [Float] |
|
-> m Matrix | Returns: the initialzed |
Initializes matrix
with the contents of a C array of floating point
values.
Since: 1.12
initFromMatrix
initIdentity
Arguments
:: (HasCallStack, MonadIO m) | |
=> Matrix |
|
-> m Matrix | Returns: the initialized |
Initializes matrix
with the identity matrix, i.e.:
.xx = 1.0, .xy = 0.0, .xz = 0.0, .xw = 0.0 .yx = 0.0, .yy = 1.0, .yz = 0.0, .yw = 0.0 .zx = 0.0, .zy = 0.0, .zz = 1.0, .zw = 0.0 .wx = 0.0, .wy = 0.0, .wz = 0.0, .ww = 1.0
Since: 1.12