fromRowMajorArray

fun fromRowMajorArray(values: ReadonlyArray<Double>, result: Matrix4? = definedExternally): Matrix4(source)

Computes a Matrix4 instance from a row-major order array. The resulting matrix will be in column-major order.

Return

The modified result parameter, or a new Matrix4 instance if one was not provided.

Parameters

values

The row-major order array.

result

The object in which the result will be stored, if undefined a new instance will be created.

See also