Packagegraphics.geom
Classpublic class Planes
InheritancePlanes Inheritance Object

Static tool class to manipulate and transform Plane references.



Public Methods
 MethodDefined By
  
[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
Method Detail
getPlaneByObject()method
public static function getPlaneByObject(o:Object):Plane

Returns 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

Returns
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):Plane

Returns 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

Returns
Plane — the Plane reference defines by the specified object with the two vectors in argument.