Class Box3

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(min?: Vector3, max?: Vector3): Box3

Parameters

Returns

Box3

Properties

public max: Vector3

public min: Vector3

Methods

public applyMatrix4(matrix: Matrix4): Box3

Parameters

Returns

Box3

public center(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

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

Parameters

Returns

Vector3

public clone(): Box3

Returns

Box3

public containsBox(box: Box3): boolean

Parameters

Returns

boolean

public containsPoint(point: Vector3): boolean

Parameters

Returns

boolean

public copy(box: Box3): Box3

Parameters

Returns

Box3

public distanceToPoint(point: Vector3): number

Parameters

Returns

number

public empty(): boolean

Returns

boolean

public equals(box: Box3): boolean

Parameters

Returns

boolean

public expandByPoint(point: Vector3): Box3

Parameters

Returns

Box3

public expandByScalar(scalar: number): Box3

Parameters

  • scalar: number

Returns

Box3

public expandByVector(vector: Vector3): Box3

Parameters

Returns

Box3

public getBoundingSphere(): Sphere

Returns

Sphere

public getParameter(point: Vector3): Vector3

Parameters

Returns

Vector3

public intersect(box: Box3): Box3

Parameters

Returns

Box3

public isIntersectionBox(box: Box3): boolean

Parameters

Returns

boolean

public makeEmpty(): Box3

Returns

Box3

public set(min: Vector3, max: Vector3): Box3

Parameters

Returns

Box3

public setFromCenterAndSize(center: Vector3, size: number): Box3

Parameters

Returns

Box3

public setFromPoints(points: Vector3[]): Box3

Parameters

Returns

Box3

public size(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

public translate(offset: Vector3): Box3

Parameters

Returns

Box3

public union(box: Box3): Box3

Parameters

Returns

Box3