Ray

A three-dimensional ray.

Details

The data type has the following form:

 [
   [<number>,<number>,<number>], // ray onset point
   [<number>,<number>,<number>]  // ray direction
 ]

It represents a ray that starts at an onset point in space and is direction into one specific direction. The actual length of the second vector representing the direction is of no importance but it must be larger than zero.