| Method | Defined by | ||
|---|---|---|---|
|
[static]
Returns a classification constant depending on a vector's position relative to a plane.
| PlaneMath | ||
|
[static]
Computes a plane from three vectors.
| PlaneMath | ||
|
[static]
Computes a plane from a normal vector and a specified point.
| PlaneMath | ||
|
[static]
Computes the distance between a plane and a vector.
| PlaneMath | ||
|
normalizePlane(p_oPlane:Plane):void
[static]
Normalizes the plane.
| PlaneMath | ||
| Constant | Defined by | ||
|---|---|---|---|
| NEGATIVE : int = -1 [static]
Specifies a negative distance from a vector to a plane.
| PlaneMath | ||
| ON_PLANE : int = 0 [static]
Specifies a vector is on a plane.
| PlaneMath | ||
| POSITIVE : int = 1 [static]
Specifies a positive distance from a vector to a plane.
| PlaneMath | ||
| classifyPoint | () | method |
public static function classifyPoint(p_oPlane:Plane, p_oVector:Vector):NumberReturns a classification constant depending on a vector's position relative to a plane.
The classification is one of PlaneMath.NEGATIVE, PlaneMath.POSITIVE, and PlaneMath.ON_PLANE.
Parametersp_oPlane:Plane — The reference plane.
|
|
p_oVector:Vector — The vector we want to classify.
|
Number — The classification of the vector.
|
| computePlaneFromPoints | () | method |
public static function computePlaneFromPoints(p_oVectorA:Vector, p_oVectorB:Vector, p_oVectorC:Vector):PlaneComputes a plane from three vectors.
Parametersp_oVectorA:Vector — The first vector.
|
|
p_oVectorB:Vector — The second vector.
|
|
p_oVectorC:Vector — The third vector.
|
Plane —
The computed plane.
|
| 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 computed plane.
|
| distanceToPoint | () | method |
public static function distanceToPoint(p_oPlane:Plane, p_oVector:Vector):NumberComputes the distance between a plane and a vector.
Parametersp_oPlane:Plane — The plane.
|
|
p_oVector:Vector — The vector.
|
Number — The distance between the vector 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 = -1Specifies a negative distance from a vector to a plane.
| ON_PLANE | constant |
public static const ON_PLANE:int = 0Specifies a vector is on a plane.
| POSITIVE | constant |
public static const POSITIVE:int = 1Specifies a positive distance from a vector to a plane.