fromNumArray method

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

Implementation

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

  onChangeCallback();

  return this;
}