set method

void set(
  1. Vector3 origin,
  2. Vector3 direction
)

Implementation

void set(Vector3 origin, Vector3 direction) {
  // direction is assumed to be normalized (for accurate distance calculations)

  ray.set(origin, direction);
}