Math functions for planes.
static public NEGATIVE:Number [Read Only]static public ON_PLANE:Number [Read Only]static public POSITIVE:Number [Read Only]static public function normalizePlane(plane:Plane):VoidNormalize the plane. Often before making some calculations with a plane you have to normalize it.
plane | Plane The plane that we want to normalize. |
static public function distanceToPoint(plane:Plane, pt:Vector):NumberComputes the distance between a plane and a 3D point (a vector here).
plane | Plane The plane we want to compute the distance from |
pt | Vector The vector in the 3D space |
Number The distance between the point and the plane.
static public function classifyPoint(plane:Plane, pt:Vector):NumberReturns a constant PlaneMath.NEGATIVE PlaneMath.POSITIVE PlaneMath.ON_PLANE depending of the position of the point compared to the plane
plane | Plane The reference plane |
pt | Vector The point we want to classify |
Number The classification of the point PlaneMath.NEGATIVE or PlaneMath.POSITIVE or PlaneMath.ON_PLANE