Class Plane

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(normal?: Vector3, constant?: number): Plane

Parameters

  • normal?: Vector3 optional
  • constant?: number optional

Returns

Plane

Properties

public constant: number

public normal: Vector3

Methods

public applyMatrix4(matrix: Matrix4, optionalNormalMatrix?: Matrix3): Plane

Parameters

Returns

Plane

public clone(): Plane

Returns

Plane

public coplanarPoint(optionalTarget?: boolean): Vector3

Parameters

  • optionalTarget?: boolean optional

Returns

Vector3

public copy(plane: Plane): Plane

Parameters

Returns

Plane

public distanceToPoint(point: Vector3): number

Parameters

Returns

number

public distanceToSphere(sphere: Sphere): number

Parameters

Returns

number

public equals(plane: Plane): boolean

Parameters

Returns

boolean

public intersectLine(line: Line3, optionalTarget?: Vector3): Vector3

Parameters

Returns

Vector3

public isIntersectionLine(line: Line3): boolean

Parameters

Returns

boolean

public negate(): Plane

Returns

Plane

public normalize(): Plane

Returns

Plane

public orthoPoint(point: Vector3, optionalTarget?: Vector3): Vector3

Parameters

Returns

Vector3

public projectPoint(point: Vector3, optionalTarget?: Vector3): Vector3

Parameters

Returns

Vector3

public set(normal: Vector3, constant: number): Plane

Parameters

Returns

Plane

public setComponents(x: number, y: number, z: number, w: number): Plane

Parameters

  • x: number
  • y: number
  • z: number
  • w: number

Returns

Plane

public setFromCoplanarPoints(a: Vector3, b: Vector3, c: Vector3): Plane

Parameters

Returns

Plane

public setFromNormalAndCoplanarPoint(normal: Vector3, point: Vector3): Plane

Parameters

Returns

Plane

public translate(offset: Vector3): Plane

Parameters

Returns

Plane