fromArray method

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

Implementation

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

  onChangeCallback();

  return this;
}