PackScalarArrayInVectors Data Member Function

Packs an array of scalars in an array of vectors, with the appropriate offset such as vec2, vec3, or vec4. For example, this can pack an array of 8 scalar values into an array of four vector values, using the scalar values to fill in the 0th and 1th component of each destination vector.

Prototype

int32 PackScalarArrayInVectors( Int8Iterator first, Int8Iterator last, Int8Iterator dst, int32 p_nComponents )

Parameters

Parameter Type Parameter Name Documentation
<Int8Iterator>firstAn iterator at the start of the source range.
<Int8Iterator>lastAn iterator at the end of the source range.
<Int8Iterator>dstAn iterator at the start of the destination range.
int32p_nComponentsThe vector dimension offset. Must be 2, 3, or 4.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.