fromArray method

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

Implementation

Quaternion fromArray(List<double> array, [int offset = 0]) {
  _x = array[offset];
  _y = array[offset + 1];
  _z = array[offset + 2];
  _w = array[offset + 3];

  onChangeCallback();

  return this;
}