ray.of
The half-line from a point along a direction.
Usage
Ray.of(origin: Point3, direction: Vector3): RayParameters
originPoint3Where the ray starts. Required. In model.
directionVector3The direction; its length is the unit of the ray parameter. Required. In model.
Returns
A new { origin, direction }; the direction is not normalised or checked.
Example
Ray.of(Point3.origin, Vector3.zAxis) // → { origin: { x: 0, y: 0, z: 0 }, direction: { x: 0, y: 0, z: 1 } }