PackVectorsInScalarArray Data Member Function

Packs an array of vectors into an array of scalars, using the dimension as the offset for packing. All Scenome API vectors are four components. Passing a vector dimension of 2 to this function results in a scalar array with the [0]th and [1]th component of each vector packed into the scalar array.

Prototype

int32 PackVectorsInScalarArray( Int64Iterator first, Int64Iterator last, Int64Iterator dst, int32 p_nComponents )

Parameters

Parameter Type Parameter Name Documentation
<Int64Iterator>firstAn iterator to the start of the range of vectors you wish to pack into a scalar array.
<Int64Iterator>lastAn iterator to the end of the range of vectors you wish to pack into a scalar array.
<Int64Iterator>dstAn iterator to the start of the range of scalars that will store the packed vector components.
int32p_nComponentsThe number of components of each vector to pack into the scalar array. 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.