copy method

Vec3 copy(
  1. Vec3 vector
)

Copies value of source to this vector.

Implementation

Vec3 copy(Vec3 vector) {
  x = vector.x;
  y = vector.y;
  z = vector.z;
  return this;
}