| Package | pegas.geom |
| Class | public class Ray |
| Implements | Geometry |
(A) -- (B) -- ((C)) -- >
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| p | property |
public var p:Vector3
Determinates the p Vector3 of the Ray object.
| q | property |
public var q:Vector3
Determinates the q Vector3 of the Ray object.
| v | property |
public var v:Vector3
Determinates the v Vector3 of the Ray object.
| 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 |
| 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:*):BooleanCompares the specified object with this object for equality.
Parameterso:* |
Boolean — true if the the specified object is equal with this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parametersindent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|
| update | () | method |
public function update():voidUpdates the Ray object.