toArray method

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

Copies all values of this quaternion to the given array.

Implementation

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

	return array;
}