fromArray

fun fromArray(array: DoubleArray, offset: Int = 0): Vector4

Sets x = array[offset], y = array[offset + 1], z = array[offset + 2], w = array[offset + 3].

Return

A reference to this vector.

Parameters

array

An array holding the vector component values.