Ray.copy constructor

Ray.copy(
  1. Ray other
)

Create a ray as a copy of other.

Implementation

Ray.copy(Ray other)
  : _origin = Vector3.copy(other._origin),
    _direction = Vector3.copy(other._direction);