vec.Ray Extends
Constructs a new ray with an optional origin and direction. If not specified, the default is [0, 0, 0].

Inheritance

Constructor

goog.vec.Ray(opt_originopt_dir)

Parameters

opt_origin : goog.vec.Vec3.AnyType=
The optional origin.
opt_dir : goog.vec.Vec3.AnyType=
The optional direction.

Instance Methods

Public Protected Private
Defined in goog.vec.Ray
equals(other) boolean
Returns true if this ray is equal to the other ray.
Arguments:
other : goog.vec.Ray
The other ray.
Returns: boolean  True if this ray is equal to the other ray.
code »
set(origindir)
Sets the origin and direction of the ray.
Arguments:
origin : goog.vec.AnyType
The new origin.
dir : goog.vec.AnyType
The new direction.
code »
setDir(dir)
Sets the direction of the ray.
Arguments:
dir : goog.vec.AnyType
The new direction.
code »
setOrigin(origin)
Sets the origin of the ray.
Arguments:
origin : goog.vec.AnyType
the new origin.
code »

Instance Properties

Defined in goog.vec.Ray
dir :
No description.
Code »
origin :
No description.
Code »

Package vec

Package Reference