Static variables

@:value(0)staticinlineread onlyALIGN_ANY:Int = 0

@:value(1)staticinlineread onlyALIGN_XY_AXIS:Int = 1

@:value(3)staticinlineread onlyALIGN_XZ_AXIS:Int = 3

@:value(2)staticinlineread onlyALIGN_YZ_AXIS:Int = 2

Constructor

@:value({ d : 0, c : 0, b : 0, a : 0 })new(a:Float = 0, b:Float = 0, c:Float = 0, d:Float = 0)

Create a Plane3D with ABCD coefficients

Variables

a:Float

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

b:Float

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

c:Float

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

d:Float

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

Methods

@:value({ epsilon : 0.01 })classifyPoint(p:Vector3D, epsilon:Float = 0.01):Int

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

Parameters:

p

Vector3D

Returns:

int Plane3.FRONT or Plane3D.BACK or Plane3D.INTERSECT

distance(p:Vector3D):Float

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

Parameters:

p

Vector3D

Returns:

Number

fromNormalAndPoint(normal:Vector3D, point:Vector3D):Void

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

Parameters:

normal

Vector3D

point

Vector3D

fromPoints(p0:Vector3D, p1:Vector3D, p2:Vector3D):Void

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

Parameters:

p0

Vector3D

p1

Vector3D

p2

Vector3D

normalize():Plane3D

Normalize this Plane3D

Returns:

Plane3D This Plane3D.

toString():String