| Method | Defined by | ||
|---|---|---|---|
|
[static]
Returns a classification constant depending on a points position relative to a plane.
| PlaneMath | ||
|
[static]
Computes a plane from three specified points.
| PlaneMath | ||
|
[static]
Computes a plane from a normal vector and a specified point.
| PlaneMath | ||
|
[static]
Computes the distance between a plane and a 3D point (a vector here).
| PlaneMath | ||
|
normalizePlane(p_oPlane:Plane):void
[static]
Normalizes the plane.
| PlaneMath | ||
| Constant | Defined by | ||
|---|---|---|---|
| NEGATIVE : int = -1 [static]
Defines the numeric value -1
| PlaneMath | ||
| ON_PLANE : int = 0 [static]
Defines the numeric value 0
| PlaneMath | ||
| POSITIVE : int = 1 [static]
Defines the numeric value 1
| PlaneMath | ||
| classifyPoint | () | method |
public static function classifyPoint(p_oPlane:Plane, p_oPoint:Vector):NumberReturns a classification constant depending on a points position relative to a plane.
The classification is one of PlaneMath.NEGATIVE PlaneMath.POSITIVE PlaneMath.ON_PLANE
Parametersp_oPlane:Plane — The reference plane
|
|
p_oPoint:Vector — The point we want to classify
|
Number — The classification of the point
|
| computePlaneFromPoints | () | method |
public static function computePlaneFromPoints(p_oPointA:Vector, p_oPointB:Vector, p_oPointC:Vector):PlaneComputes a plane from three specified points.
Parametersp_oPointA:Vector — The first point
|
|
p_oPointB:Vector — The second point
|
|
p_oPointC:Vector — The third point
|
Plane —
The Plane object
|
| createFromNormalAndPoint | () | method |
public static function createFromNormalAndPoint(p_oNormal:Vector, p_nPoint:Number):PlaneComputes a plane from a normal vector and a specified point.
Parametersp_oNormal:Vector — The normal vector
|
|
p_nPoint:Number — The point
|
Plane —
The Plane object
|
| distanceToPoint | () | method |
public static function distanceToPoint(p_oPlane:Plane, p_oPoint:Vector):NumberComputes the distance between a plane and a 3D point (a vector here).
Parametersp_oPlane:Plane — The plane we want to compute the distance from
|
|
p_oPoint:Vector — The point in space
|
Number — The distance between the point and the plane.
|
| normalizePlane | () | method |
public static function normalizePlane(p_oPlane:Plane):voidNormalizes the plane.
Often before making some calculations with a plane you have to normalize it.
Parametersp_oPlane:Plane — The plane to normalize.
|
| NEGATIVE | constant |
public static const NEGATIVE:int = -1Defines the numeric value -1
| ON_PLANE | constant |
public static const ON_PLANE:int = 0Defines the numeric value 0
| POSITIVE | constant |
public static const POSITIVE:int = 1Defines the numeric value 1