fromArray

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

Sets x = array[offset], y = array[offset + 1].

Return

A reference to this vector.

Parameters

array

An array holding the vector component values.