Ray3¶
Overview¶
3-dimensional ray consisting of an origin point and a unit direction vector.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class Ray3¶
Constructor¶
new Ray3( position : Vector3, direction : Vector3 )¶
Instance Methods¶
shifted( distance : number ) : Ray3¶
Returns a new Ray that has it origin shifted to a position given by an amount distance*this.direction.
pointAtDistance( distance : number ) : Vector3¶
Returns a position that is a distance 'distance' along the ray.
distanceToPlane( plane : Plane3 ) : number¶
Returns the distance of this ray to a plane
toString() : string¶
Returns the attributes of this ray into a string