clone method

Vector3 clone()

Returns a new vector3 with the same x, y and z values as this one.

Implementation

Vector3 clone() {
  return Vector3(x, y, z);
}