Packs an array of matrices in a scalar array. The column and row values are used to determine how the data is packed into the scalar array. For example, a matrix has 4x4 columns and rows, but packing only 2 columns and 2 rows means that fewer matrix values are stored in the scalar array. Values are packed contiguously until the source or destination run out of data.
int32 PackMatricesInScalarArray( Float32Iterator first, Float32Iterator last, Float32Iterator dest, int32 p_nCols, int32 p_nRows, int32 p_bRowMajor )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Float32Iterator> | first | An iterator at the start of the matrix array. |
<Float32Iterator> | last | An iterator at the end of the matrix array. |
<Float32Iterator> | dest | An iterator at the start of the destination array. |
int32 | p_nCols | The number of matrix columns. For example 2 for mat2xN, 3 for mat3xN, or 4 for mat4xN. |
int32 | p_nRows | The number of matrix rows. For example 2 for matNx2, 3 for matNx3, or 4 for matNx4. |
int32 | p_bRowMajor | Whether or not the matrix is row or column major. |
None published. Please look for an example in the Scenome Scripting Language code base.