fromArray method

Vector3 fromArray(
  1. List<double> array, [
  2. int offset = 0
])

Sets the components of this 3D vector from an array.

Implementation

Vector3 fromArray(List<double> array, [int offset = 0 ]) {
	x = array[ offset + 0 ];
	y = array[ offset + 1 ];
	z = array[ offset + 2 ];

	return this;
}