toArray method

List<double> toArray()

Converts to an array

Implementation

List<double> toArray(){
  return [x, y, z];
}