Options
Menu

Class Plane3D

Hierarchy

  • Plane3D

Index

Constructors

constructor

  • new Plane3D(a?: number, b?: number, c?: number, d?: number): Plane3D
  • Create a Plane3D with ABCD coefficients

    Parameters

    • Default value a: number = 0
    • Default value b: number = 0
    • Default value c: number = 0
    • Default value d: number = 0

    Returns Plane3D

Properties

_iAlignment

_iAlignment: number

a

a: number

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

b

b: number

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

c

c: number

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

d

d: number

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

Static ALIGN_ANY

ALIGN_ANY: number

Static ALIGN_XY_AXIS

ALIGN_XY_AXIS: number

Static ALIGN_XZ_AXIS

ALIGN_XZ_AXIS: number

Static ALIGN_YZ_AXIS

ALIGN_YZ_AXIS: number

Methods

classifyPoint

  • classifyPoint(p: Vector3D, epsilon?: number): number
  • Classify a point against this Plane3D. (in front, back or intersecting)

    Parameters

    • p: Vector3D

      Vector3D

    • Default value epsilon: number = 0.01

    Returns number

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

distance

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

    Parameters

    Returns number

    Number

fromNormalAndPoint

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

    Parameters

    Returns void

fromPoints

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

    Parameters

    Returns void

normalize

  • Normalize this Plane3D

    Returns Plane3D

    Plane3D This Plane3D.

toString

  • toString(): string
  • Returns string

Generated using TypeDoc