ray

A geometric ray in 3D space.

Signatures

  • ray( vector origin, vector dir )

Details

A ray starts at its origin point and extends along its direction vector.

Rays can be used to sample a solid's surface by using the probe function.

Casts To

string

Members

vector origin

Allows to read/write the origin of the ray.

vector dir

Allows to read/write the direction of the ray.

Parameters

origin

The origin point in 3d space.

dir

The direction vector.

See also