Ray

class Ray()

Object representing a Ray.

Constructors

Properties


Constructors

Ray.constructor([origin[, direction]])
Arguments
Return type

Ray

Properties

Ray.direction
Type

Point3

Ray.origin
Type

Point3

Methods

assign

Ray.assign(ray)
Arguments
  • ray (Ray()) – the ray to assign

Sets this ray equal to another ray

Return type

this

copy

Ray.copy()

Creates a copy of this ray

Returns

a copy of this ray object

Return type

Ray

negate

Ray.negate()

Flips the ray’s direction.

Return type

this