set

fun set(origin: Vector3, direction: Vector3): Ray

Copies the given origin and direction into this ray.

Return

A reference to this ray.