Package | away3d.core.math |
Class | public class Plane3D |
Property | Defined by | ||
---|---|---|---|
a : Number
The A coefficient of this plane.
| Plane3D | ||
b : Number
The B coefficient of this plane.
| Plane3D | ||
c : Number
The C coefficient of this plane.
| Plane3D | ||
d : Number
The D coefficient of this plane.
| Plane3D |
Method | Defined by | ||
---|---|---|---|
Plane3D
(a:Number = 0, b:Number = 0, c:Number = 0, d:Number = 0)
Create a Plane3D with ABCD coefficients
| Plane3D | ||
classifyPoint(p:Vector3D, epsilon:Number = 0.01):int
Classify a point against this Plane3D.
| Plane3D | ||
distance(p:Vector3D):Number
Returns the signed distance between this Plane3D and the point p.
| Plane3D | ||
fromNormalAndPoint(normal:Vector3D, point:Vector3D):void
Fills this Plane3D with the coefficients from the plane's normal and a point in 3d space.
| Plane3D | ||
fromPoints(p0:Vector3D, p1:Vector3D, p2:Vector3D):void
Fills this Plane3D with the coefficients from 3 points in 3d space.
| Plane3D | ||
Normalize this Plane3D
| Plane3D | ||
toString():String
| Plane3D |
Constant | Defined by | ||
---|---|---|---|
ALIGN_ANY : int = 0 [static]
| Plane3D | ||
ALIGN_XY_AXIS : int = 1 [static]
| Plane3D | ||
ALIGN_XZ_AXIS : int = 3 [static]
| Plane3D | ||
ALIGN_YZ_AXIS : int = 2 [static]
| Plane3D |
a | property |
public var a:Number
The A coefficient of this plane. (Also the x dimension of the plane normal)
_alignment | property |
arcane var _alignment:int
b | property |
public var b:Number
The B coefficient of this plane. (Also the y dimension of the plane normal)
c | property |
public var c:Number
The C coefficient of this plane. (Also the z dimension of the plane normal)
d | property |
public var d:Number
The D coefficient of this plane. (Also the inverse dot product between normal and point)
Plane3D | () | constructor |
public function Plane3D(a:Number = 0, b:Number = 0, c:Number = 0, d:Number = 0)
Parameters
a:Number (default = 0 )
|
|
b:Number (default = 0 )
|
|
c:Number (default = 0 )
|
|
d:Number (default = 0 )
|
classifyPoint | () | method |
public function classifyPoint(p:Vector3D, epsilon:Number = 0.01):int
Classify a point against this Plane3D. (in front, back or intersecting)
Parametersp:Vector3D — Vector3D
|
|
epsilon:Number (default = 0.01 )
|
int — int Plane3.FRONT or Plane3D.BACK or Plane3D.INTERSECT
|
distance | () | method |
public function distance(p:Vector3D):Number
Returns the signed distance between this Plane3D and the point p.
Parametersp:Vector3D — Vector3D
|
Number |
fromNormalAndPoint | () | method |
public function fromNormalAndPoint(normal:Vector3D, point:Vector3D):void
Fills this Plane3D with the coefficients from the plane's normal and a point in 3d space.
Parametersnormal:Vector3D — Vector3D
|
|
point:Vector3D — Vector3D
|
fromPoints | () | method |
public function fromPoints(p0:Vector3D, p1:Vector3D, p2:Vector3D):void
Fills this Plane3D with the coefficients from 3 points in 3d space.
Parametersp0:Vector3D — Vector3D
|
|
p1:Vector3D — Vector3D
|
|
p2:Vector3D — Vector3D
|
normalize | () | method |
toString | () | method |
public function toString():String
Returns
String |
ALIGN_ANY | constant |
public static const ALIGN_ANY:int = 0
ALIGN_XY_AXIS | constant |
public static const ALIGN_XY_AXIS:int = 1
ALIGN_XZ_AXIS | constant |
public static const ALIGN_XZ_AXIS:int = 3
ALIGN_YZ_AXIS | constant |
public static const ALIGN_YZ_AXIS:int = 2