toArray method

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

Implementation

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

  return array;
}