← Standard library

Ray3

struct Ray3
import Ray3 from Wax;

A parametric ray defined by origin and direction. The direction is stored without normalization, and PointAt also accepts negative parameters.

Geometry3D.wax:205

Members

originfield

public float3 origin

The position at parameter zero.

Geometry3D.wax:209

directionfield

public float3 direction

The displacement per unit parameter; need not have unit length.

Geometry3D.wax:213

constructorconstructor

public constructor (float3 origin, float3 direction)

Stores origin and direction without normalization.

Geometry3D.wax:218

PointAtmethod

public fn PointAt(float t) : float3

Returns origin + direction*t. The parameter is a physical distance only when direction has unit length; negative t is allowed.

Geometry3D.wax:227

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.