constructor()(source)


constructor(values: Array<Float>)(source)

Initializes a ZMatrix4 object with the provided array of float values.

Parameters

values

An array of float values to initialize the matrix with. The array should contain exactly 16 elements.

Throws

if the provided array does not contain exactly 16 elements.


constructor(values: FloatArray)(source)

Constructs a 4x4 matrix from a given array of float values.

Parameters

values

the float array containing 16 values to initialize the matrix

Throws

if the provided array does not contain exactly 16 values