Ray constructor

Ray([
  1. Vector3? origin,
  2. Vector3? direction
])

Constructs a ray with the given values.

Implementation

Ray([Vector3? origin, Vector3? direction]) {
	this.origin = origin ?? Vector3() ;
	this.direction = direction ?? Vector3() ;
}