toArray method
Set this Quant in the form of an array using array
and offset
Implementation
void toArray(List<double> array, [int offset = 0]) {
array[ offset ] = x;
array[ offset + 1 ] = y;
array[ offset + 2 ] = z;
array[ offset + 3 ] = w;
}