set method
void
set(
- Vector3 origin,
- Vector3 direction
origin
— The origin vector where the ray casts from.
direction
— The normalized direction vector that gives
direction to the ray.
Updates the ray with a new origin and direction. Please note that this method only copies the values from the arguments.
Implementation
void set(Vector3 origin, Vector3 direction) {
// direction is assumed to be normalized (for accurate distance calculations)
ray.set(origin, direction);
}