Plane

class Plane()

Object representing a Plane.

Constructors

Properties


Constructors

Plane.constructor()
Return type:Plane

Properties

Plane.d
Type:number
Plane.normal
Type:Point3

Methods

assign

Plane.assign(plane)
Arguments:
  • plane (Plane()) – the plane to assign

Sets this plane equal to another plane

Return type:void

copy

Plane.copy()

Creates a copy of this plane

Returns:a copy of this plane object
Return type:Plane

determineSide

Plane.determineSide(p)
Arguments:

Returns true if the point is on the side of the plane that the plane’s normal is directed. Returns false otherwise.

Return type:boolean

distanceToPoint

Plane.distanceToPoint(point)
Arguments:
Return type:

number

equals

Plane.equals(plane)
Arguments:

Returns true if the normal and d value are the same.

Return type:boolean

getCoefficients

Plane.getCoefficients()
Return type:(number, number, number, number)

intersectsRay

Plane.intersectsRay(ray[, outPoint])
Arguments:
Return type:

boolean

rayIntersection

Plane.rayIntersection(ray)
Arguments:
Return type:

null | Point3

setFromCoefficients

Plane.setFromCoefficients(a, b, c, d)
Arguments:
  • a (number()) – None
  • b (number()) – None
  • c (number()) – None
  • d (number()) – None
Return type:

void

setFromPointAndNormal

Plane.setFromPointAndNormal(point, normal)
Arguments:
Return type:

this

setFromPoints

Plane.setFromPoints(p1, p2, p3)
Arguments:

Update the plane to pass through the three points

Return type:void

static createFromCoefficients

Plane.createFromCoefficients(a, b, c, d)
Arguments:
  • a (number()) – None
  • b (number()) – None
  • c (number()) – None
  • d (number()) – None
Return type:

Plane

static createFromPointAndNormal

Plane.createFromPointAndNormal(point, normal)
Arguments:
Return type:

Plane

static createFromPoints

Plane.createFromPoints(p1, p2, p3)
Arguments:
Return type:

Plane