fromArray method

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

Place all parts of the array into this vectors positions

Implementation

Vec3 fromArray(List<double> array, [int offset = 0]){
  x = array[ offset ];
  y = array[ offset + 1 ];
  z = array[ offset + 2 ];
  return this;
}