set method

Vec3 set(
  1. double x,
  2. double y,
  3. double z
)

Set a new position for this vector using x,y,z

Implementation

Vec3 set(double x, double y, double z ){
  this.x = x;
  this.y = y;
  this.z = z;
  return this;
}