Ray.originDirection constructor

Ray.originDirection(
  1. Vector3 origin,
  2. Vector3 direction
)

Create a ray with an origin and a direction.

Implementation

Ray.originDirection(Vector3 origin, Vector3 direction)
    : _origin = Vector3.copy(origin),
      _direction = Vector3.copy(direction);