Packs a matrix into a scalar array, using row major or column major layout order. A 2x2 matrix results in four packed values.
int32 PackMatrixInScalarArray( Float32Iterator first, Float32Iterator last, Float32Iterator dst, int32 p_nCols, int32 p_nRows, int32 p_bRowMajor )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Float32Iterator> | first | An iterator at the start of the source range. |
<Float32Iterator> | last | An iterator at the end of the source range. |
<Float32Iterator> | dst | An iterator at the start of the destination range. |
int32 | p_nCols | The number of cols in the matrix. |
int32 | p_nRows | The number of rows in the matrix. |
int32 | p_bRowMajor | If true, the matrix values are extracted in row order. Otherwise the matrix is extracted in column order. |
None published. Please look for an example in the Scenome Scripting Language code base.