Ray3
struct Ray3import Ray3 from Wax;A parametric ray defined by origin and direction. The direction is stored without normalization,
and PointAt also accepts negative parameters.
Members
originfield
public float3 originThe position at parameter zero.
directionfield
public float3 directionThe displacement per unit parameter; need not have unit length.
constructorconstructor
public constructor (float3 origin, float3 direction)Stores origin and direction without normalization.
PointAtmethod
public fn PointAt(float t) : float3Returns origin + direction*t. The parameter is a physical distance only when direction has unit length; negative t is allowed.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.