Class: Ray

Ray

Ray class bundles an origin point and a direction vector for ray-intersection tests.


new Ray()

Members


direction

The direction vector of the ray.


origin

The origin point of the ray.

Methods


transformFrom(ray, matrix)

Transforms a given ray and stores it in this one.

Parameters:
Name Type Description
ray

The ray to transform.

matrix

The matrix containing the transformation.