toArray method

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

Place all position into the provided array

Implementation

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