Class Sphere

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(center?: Vector3, radius?: number): Sphere

Parameters

  • center?: Vector3 optional
  • radius?: number optional

Returns

Sphere

Properties

public center: Vector3

public radius: number

Methods

public applyMatrix4(matrix: Matrix4): Sphere

Parameters

Returns

Sphere

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

Parameters

Returns

Vector3

public clone(): Sphere

Returns

Sphere

public containsPoint(point: Vector3): boolean

Parameters

Returns

boolean

public copy(sphere: Sphere): Sphere

Parameters

Returns

Sphere

public distanceToPoint(point: Vector3): number

Parameters

Returns

number

public empty(): boolean

Returns

boolean

public equals(sphere: Sphere): boolean

Parameters

Returns

boolean

public getBoundingBox(optionalTarget?: Box3): Box3

Parameters

  • optionalTarget?: Box3 optional

Returns

Box3

public intersectsSphere(sphere: Sphere): boolean

Parameters

Returns

boolean

public set(center: Vector3, radius: number): Sphere

Parameters

Returns

Sphere

public setFromPoints(points: Vector3[], optionalCenter?: Vector3): Sphere

Parameters

Returns

Sphere

public translate(offset: Vector3): Sphere

Parameters

Returns

Sphere