copy method

Ray copy(
  1. Ray ray
)

Implementation

Ray copy(Ray ray) {
  origin.copy(ray.origin);
  direction.copy(ray.direction);

  return this;
}