Ray2
struct Ray2import Ray2 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 float2 originThe position at parameter zero.
directionfield
public float2 directionThe displacement per unit parameter; need not have unit length.
constructorconstructor
public constructor (float2 origin, float2 direction)Stores origin and direction without normalization.
PointAtmethod
public fn PointAt(float t) : float2Returns 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.