fromArray method

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

Sets the components of this quaternion from an array.

Implementation

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

	return this;
}