Class

Ray

Ray(originnullable, endnullable)

A ray

Constructor

new Ray(originnullable, endnullable)

Constructor
Parameters:
Name Type Attributes Default Description
origin vec3 <nullable>
null Ray's origin
end vec3 <nullable>
null Ray's end

View Source Math/Ray.js, line 8

Members

vec3

direction

Direction

View Source Math/Ray.js, line 21

vec3

invDirection

Inverse direction

View Source Math/Ray.js, line 28

vec3

origin

Origin

View Source Math/Ray.js, line 35

vec3

signs

Signs

View Source Math/Ray.js, line 42

Methods

set(origin, end)

Set ray
Parameters:
Name Type Description
origin vec3 Ray's origin
end vec3 Ray's end

View Source Math/Ray.js, line 56