packArray

fun packArray(array: ReadonlyArray<Matrix3>, result: ReadonlyArray<Double>? = definedExternally): ReadonlyArray<Double>(source)

Flattens an array of Matrix3s into an array of components. The components are stored in column-major order.

Return

The packed array.

Parameters

array

The array of matrices to pack.

result

The array onto which to store the result. If this is a typed array, it must have array.length * 9 components, else a DeveloperError will be thrown. If it is a regular array, it will be resized to have (array.length * 9) elements.

See also