Packagegraphics.geom
Classpublic class Ray
InheritanceRay Inheritance Object
Implements Geometry

This means half of a line, it is infinite in one direction, but ends at a certain point in the other direction. In Euclidean geometry, a ray (or half-line) given two distinct points A (the origin) and B on the ray, is the set of points C on the line containing points A and B such that A is not strictly between C and B. In geometry, a ray starts at one point, then goes on forever in one direction : (A) -- (B) -- ((C)) -- >



Public Properties
 PropertyDefined By
  p : Vector3
Determinates the p Vector3 of the Ray object.
Ray
  q : Vector3
Determinates the q Vector3 of the Ray object.
Ray
  v : Vector3
Determinates the v Vector3 of the Ray object.
Ray
Public Methods
 MethodDefined By
  
Ray(... arguments)
Creates a new Ray instance.
Ray
  
clone():*
Returns a shallow copy of this instance.
Ray
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
Ray
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
Ray
  
toString():String
Returns the string representation of the object.
Ray
  
update():void
Updates the Ray object.
Ray
Property Detail
pproperty
public var p:Vector3

Determinates the p Vector3 of the Ray object.

qproperty 
public var q:Vector3

Determinates the q Vector3 of the Ray object.

vproperty 
public var v:Vector3

Determinates the v Vector3 of the Ray object.

Constructor Detail
Ray()Constructor
public function Ray(... arguments)

Creates a new Ray instance.

Example :

With a Ray object passed in the argument of the constructor :

         var r:Ray = new Ray( r:Ray) ;
         

With 2 Vector3 objects passed in the arguments of the constuctor :

         var r:Ray = new Ray( r:Vector3 , p:Vector3 ) ;
         

Parameters
... arguments
Method Detail
clone()method
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of the object.

Returns
String — the string representation of the object.
update()method 
public function update():void

Updates the Ray object.