Plane

class Communicator.Plane()

Object representing a Plane.

Properties


Properties

Plane.d
Type

number

Plane.normal
Type

Point3()

Methods

assign

Plane.assign(plane)

Sets this plane equal to another plane

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

Return type

void

copy

Plane.copy()

Creates a copy of this plane

Return type

Plane()

Returns

a copy of this plane object

determineSide

Plane.determineSide(p)

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

Arguments
Return type

boolean

distanceToPoint

Plane.distanceToPoint(point)
Arguments
Return type

number

equals

Plane.equals(plane)

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

Arguments
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

Point3() | null

setFromCoefficients

Plane.setFromCoefficients(a, b, c, d)
Arguments
  • a (number()) –

  • b (number()) –

  • c (number()) –

  • d (number()) –

Return type

void

setFromPointAndNormal

Plane.setFromPointAndNormal(point, normal)
Arguments
Return type

Plane()

setFromPoints

Plane.setFromPoints(p1, p2, p3)

Update the plane to pass through the three points

Arguments
Return type

void

static createFromCoefficients

Plane.createFromCoefficients(a, b, c, d)
Arguments
  • a (number()) –

  • b (number()) –

  • c (number()) –

  • d (number()) –

Return type

Plane()

static createFromPointAndNormal

Plane.createFromPointAndNormal(point, normal)
Arguments
Return type

Plane()

static createFromPoints

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

Plane()