pointAt

fun pointAt(r: Ray, t: Float): Float3

Returns the point along ray r at parameter t: origin + direction * t.

Return

the world-space point at r.origin + r.direction * t

Parameters

r

the ray

t

the parameter along the ray