Sets the components of this Vector3 from the given array, based on the offset.
Vector3.x = array[offset] Vector3.y = array[offset + 1] Vector3.z = array[offset + 2]
name | type | arguments | description |
---|---|---|---|
array | Array.<number> |
The array of values to get this Vector from. |
|
offset | number | <optional> |
The offset index into the array. |
This Vector3.