Ray

A ray represented as an origin and a direction.

Constructor

new L3D.Ray(arguments)

Parameters
arguments *

Can be empty, a Ray, or an origin and direction.

Methods

pointAlongRay(distance, out) → Ray

Find the point along the ray at the given distance.

Parameters
distance number
out Ray
Returns
Ray

reflect(point, normal, out) → Ray

Reflect the ray against the given point and surface normal.

Parameters
point Vector3
normal Vector3
out Ray
Returns
Ray

transform(matrix, out) → Ray

Transform the ray by the given matrix.

Parameters
matrix Matrix4
out Ray
Returns
Ray