Packageaway3d.core.geom
Classpublic class Plane3D

Plane in 3D space

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
Plane3D
(a:Number = 0, b:Number = 0, c:Number = 0, d:Number = 0)
Create a Plane3D with ABCD coefficients
Plane3D
  
Classify a point against this Plane3D.
Plane3D
  
Finds the closest point on this Plane3 in relation to point.
Plane3D
  
distance(p:Number3D):Number
Returns the signed distance between this Plane3D and the point p.
Plane3D
  
Fills this Plane3D with the coefficients from 3 points in 3d space.
Plane3D
  
from3vertices(v0:Vertex, v1:Vertex, v2:Vertex):void
Fills this Plane3D with the coefficients from 3 vertices in 3d space.
Plane3D
  
fromNormalAndPoint(normal:Number3D, point:Number3D):void
Fills this Plane3D with the coefficients from the plane's normal and a point in 3d space.
Plane3D
  
Plane3D
  
Plane3D
  
Plane3D
  
Normalize this Plane3D
Plane3D
  
toString():String
Plane3D
  
transform(mat:Matrix3D):void
Transform this plane with the 4x4 transform matrix m4x4.
Plane3D
Public Constants
 ConstantDefined by
  BACK : int = -1
[static]
Plane3D
  FRONT : int = 1
[static]
Plane3D
  INTERSECT : int = 0
[static]
Plane3D
Property detail
aproperty
public var a:Number

The A coefficient of this plane. (Also the x dimension of the plane normal)

_alignmentproperty 
arcane var _alignment:int
bproperty 
public var b:Number

The B coefficient of this plane. (Also the y dimension of the plane normal)

cproperty 
public var c:Number

The C coefficient of this plane. (Also the z dimension of the plane normal)

dproperty 
public var d:Number

The D coefficient of this plane. (Also the inverse dot product between normal and point)

Constructor detail
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)
Init Parameters
Method detail
classifyPoint()method
public function classifyPoint(p:Number3D):int

Classify a point against this Plane3D. (in front, back or intersecting)

Parameters
p:Number3D — Number3D

Returns
int — int Plane3.FRONT or Plane3D.BACK or Plane3D.INTERSECT
closestPointFrom()method 
public function closestPointFrom(point:Number3D):Number3D

Finds the closest point on this Plane3 in relation to point. XXX Untested

Parameters
point:Number3D — Number3D

Returns
Number3D — Number3D
distance()method 
public function distance(p:Number3D):Number

Returns the signed distance between this Plane3D and the point p.

Parameters
p:Number3D — Number3D

Returns
Number
from3points()method 
public function from3points(p0:Number3D, p1:Number3D, p2:Number3D):void

Fills this Plane3D with the coefficients from 3 points in 3d space.

Parameters
p0:Number3D — Number3D
 
p1:Number3D — Number3D
 
p2:Number3D — Number3D
from3vertices()method 
public function from3vertices(v0:Vertex, v1:Vertex, v2:Vertex):void

Fills 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:Number3D, point:Number3D):void

Fills this Plane3D with the coefficients from the plane's normal and a point in 3d space.

Parameters
normal:Number3D — Number3D
 
point:Number3D — Number3D
getIntersectionLine()method 
public function getIntersectionLine(v0:Vertex, v1:Vertex):Vertex Parameters
v0:Vertex
 
v1:Vertex

Returns
Vertex
getIntersectionLineNumbers()method 
public function getIntersectionLineNumbers(v0:Number3D, v1:Number3D):Number3D Parameters
v0:Number3D
 
v1:Number3D

Returns
Number3D
getIntersectionSegmentNumbers()method 
public function getIntersectionSegmentNumbers(v0:Number3D, v1:Number3D):Number3D Parameters
v0:Number3D
 
v1:Number3D

Returns
Number3D
normalize()method 
public function normalize():Plane3D

Normalize this Plane3D

Returns
Plane3D — Plane3D This Plane3D.
toString()method 
public function toString():String

Returns
String
transform()method 
public function transform(mat:Matrix3D):void

Transform this plane with the 4x4 transform matrix m4x4. XXX Untested

Parameters
mat:Matrix3D
Constant detail
ANYconstant
arcane static const ANY:int = 0
BACKconstant 
public static const BACK:int = -1
FRONTconstant 
public static const FRONT:int = 1
INTERSECTconstant 
public static const INTERSECT:int = 0
X_AXISconstant 
arcane static const X_AXIS:int = 1
Y_AXISconstant 
arcane static const Y_AXIS:int = 2
Z_AXISconstant 
arcane static const Z_AXIS:int = 3
Wiki link
Click to go to the wiki page for 'away3d.core.geom.Plane3D'

Code examples

Comments