RayT

A ray that supports two and three dimensions

struct RayT (
VT
) if (
is(VT == float2) ||
is(VT == float3)
) {
VT ori;
VT dir;
}

Constructors

this
this(VT origin, VT direction)

Constructs a ray with an origin and direction

Members

Functions

Normalize
RayT!VT Normalize()

Returns a ray with a normalized ray direction

Meta