Line

constructor()

Constructs a line with origin and direction both zero.


constructor(origin: Vec3, direction: Vec3)

Constructs a line with a specified origin and direction.

Parameters

origin

the line's origin

direction

the line's direction


constructor(line: Line)

Constructs a line with the origin and direction from a specified line.

Parameters

line

the line specifying origin and direction