copy method

Vector3 copy(
  1. Vector3 v
)

Copies the values of the passed vector3's x, y and z properties to this vector3.

Implementation

Vector3 copy(Vector3 v) {
  x = v.x;
  y = v.y;
  z = v.z;
  return this;
}