| Package | graphics.geom |
| Class | public class Planes |
| Inheritance | Planes Object |
Plane references.
| Method | Defined By | ||
|---|---|---|---|
getPlaneByObject(o:Object):Plane [static]
Returns the Plane reference defines by the specified object with the properties a, b, c and d. | Planes | ||
[static]
Returns the Plane reference defines by the specified object with the two vectors in argument. | Planes | ||
| getPlaneByObject | () | method |
public static function getPlaneByObject(o:Object):PlaneReturns the Plane reference defines by the specified object with the properties a, b, c and d.
Example :
import graphics.geom.Plane ;
import graphics.util.PlaneUtil ;
var p:Plane = PlaneUtil.getPlaneByObject( { a:10 , b:10 , c:100 , d:100 } ) ;
trace(p) ; // [Plane:{10,10,100,100}]
Parameters
o:Object |
Plane — the Plane reference defines by the specified object with the properties a, b, c and d.
|
| getPlaneByVector | () | method |
public static function getPlaneByVector(v1:Vector2, v2:Vector2):PlaneReturns the Plane reference defines by the specified object with the two vectors in argument.
Example :
import graphics.geom.Plane ;
import graphics.geom.Vector2 ;
import graphics.util.PlaneUtil ;
var v1:Vector2 = new Vector2(10,10) ;
var v2:Vector2 = new Vector2(100,100) ;
var p:Plane = PlaneUtil.getPlaneByVector( v1, v2 ) ;
trace(p) ; // [Plane:{10,10,100,100}]
Parameters
v1:Vector2 | |
v2:Vector2 |
Plane — the Plane reference defines by the specified object with the two vectors in argument.
|