| 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):int
Classify a point against this Plane3D. | Plane3D | ||
closestPointFrom(point:Vector3D):Vector3D
Finds the closest point on this Plane3 in relation to point. | Plane3D | ||
distance(p:Vector3D):Number
Returns the signed distance between this Plane3D and the point p. | Plane3D | ||
from3points(p0:Vector3D, p1:Vector3D, p2:Vector3D):void
Fills this Plane3D with the coefficients from 3 points in 3d space. | Plane3D | ||
Fills this Plane3D with the coefficients from 3 vertices in 3d space. | 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 | ||
| Plane3D | |||
getIntersectionLineNumbers(v0:Vector3D, v1:Vector3D):Vector3D | Plane3D | ||
getIntersectionSegmentNumbers(v0:Vector3D, v1:Vector3D):Vector3D | Plane3D | ||
Normalize this Plane3D
| Plane3D | ||
toString():String | Plane3D | ||
transform(mat:Matrix3D):void
Transform this plane with the 4x4 transform matrix m4x4. | Plane3D | ||
| Constant | Defined By | ||
|---|---|---|---|
| BACK : int = -1 [static] | Plane3D | ||
| FRONT : int = 1 [static] | Plane3D | ||
| INTERSECT : int = 0 [static] | Plane3D | ||
| _alignment | property |
arcane var _alignment:int| a | property |
public var a:NumberThe A coefficient of this plane. (Also the x dimension of the plane normal)
| b | property |
public var b:NumberThe B coefficient of this plane. (Also the y dimension of the plane normal)
| c | property |
public var c:NumberThe C coefficient of this plane. (Also the z dimension of the plane normal)
| d | property |
public var d:NumberThe 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)Create a Plane3D with ABCD coefficients
Parametersa:Number (default = 0) | |
b:Number (default = 0) | |
c:Number (default = 0) | |
d:Number (default = 0) |
| classifyPoint | () | method |
public function classifyPoint(p:Vector3D):intClassify a point against this Plane3D. (in front, back or intersecting)
Parameters
p:Vector3D — Vector3D
|
int — int Plane3.FRONT or Plane3D.BACK or Plane3D.INTERSECT
|
| closestPointFrom | () | method |
public function closestPointFrom(point:Vector3D):Vector3DFinds the closest point on this Plane3 in relation to point. XXX Untested
Parameters
point:Vector3D — Vector3D
|
Vector3D — Vector3D
|
| distance | () | method |
public function distance(p:Vector3D):NumberReturns the signed distance between this Plane3D and the point p.
Parameters
p:Vector3D — Vector3D
|
Number |
| from3points | () | method |
public function from3points(p0:Vector3D, p1:Vector3D, p2:Vector3D):voidFills this Plane3D with the coefficients from 3 points in 3d space.
Parameters
p0:Vector3D — Vector3D
| |
p1:Vector3D — Vector3D
| |
p2:Vector3D — Vector3D
|
| from3vertices | () | method |
public function from3vertices(v0:Vertex, v1:Vertex, v2:Vertex):voidFills this Plane3D with the coefficients from 3 vertices in 3d space.
Parameters
v0:Vertex — Vertex
| |
v1:Vertex — Vertex
| |
v2:Vertex — Vertex
|
| fromNormalAndPoint | () | method |
public function fromNormalAndPoint(normal:Vector3D, point:Vector3D):voidFills this Plane3D with the coefficients from the plane's normal and a point in 3d space.
Parameters
normal:Vector3D — Vector3D
| |
point:Vector3D — Vector3D
|
| getIntersectionLine | () | method |
public function getIntersectionLine(v0:Vertex, v1:Vertex):VertexParameters
v0:Vertex | |
v1:Vertex |
Vertex |
| getIntersectionLineNumbers | () | method |
public function getIntersectionLineNumbers(v0:Vector3D, v1:Vector3D):Vector3DParameters
v0:Vector3D | |
v1:Vector3D |
Vector3D |
| getIntersectionSegmentNumbers | () | method |
public function getIntersectionSegmentNumbers(v0:Vector3D, v1:Vector3D):Vector3DParameters
v0:Vector3D | |
v1:Vector3D |
Vector3D |
| normalize | () | method |
| toString | () | method |
public function toString():StringReturnsString |
| transform | () | method |
public function transform(mat:Matrix3D):voidTransform this plane with the 4x4 transform matrix m4x4. XXX Untested
Parameters
mat:Matrix3D |
| ANY | Constant |
arcane static const ANY:int = 0| BACK | Constant |
public static const BACK:int = -1| FRONT | Constant |
public static const FRONT:int = 1| INTERSECT | Constant |
public static const INTERSECT:int = 0| X_AXIS | Constant |
arcane static const X_AXIS:int = 1| Y_AXIS | Constant |
arcane static const Y_AXIS:int = 2| Z_AXIS | Constant |
arcane static const Z_AXIS:int = 3