import { NumericArray, Vector3 } from '@math.gl/core'; import { BoundingVolume } from "./bounding-volume.js"; import { Plane } from "../plane.js"; /** A BoundingSphere */ export declare class BoundingSphere implements BoundingVolume { center: Vector3; radius: number; /** Creates a bounding sphere */ constructor(center?: readonly number[], radius?: number); /** Sets the bounding sphere from `center` and `radius`. */ fromCenterRadius(center: readonly number[], radius: number): this; /** * Computes a bounding sphere from the corner points of an axis-aligned bounding box. The sphere * tightly and fully encompasses the box. */ fromCornerPoints(corner: readonly number[], oppositeCorner: readonly number[]): this; /** Compares the provided BoundingSphere component wise */ equals(right: BoundingSphere): boolean; /** Duplicates a BoundingSphere instance. */ clone(): BoundingSphere; /** Computes a bounding sphere that contains both the left and right bounding spheres. */ union(boundingSphere: BoundingSphere): BoundingSphere; /** Computes a bounding sphere by enlarging the provided sphere to contain the provided point. */ expand(point: readonly number[]): this; /** * Applies a 4x4 affine transformation matrix to a bounding sphere. * @param sphere The bounding sphere to apply the transformation to. * @param transform The transformation matrix to apply to the bounding sphere. * @returns self. */ transform(transform: readonly number[]): this; /** Computes the estimated distance squared from the closest point on a bounding sphere to a point. */ distanceSquaredTo(point: Readonly): number; /** Computes the estimated distance from the closest point on a bounding sphere to a point. */ distanceTo(point: Readonly): number; /** Determines which side of a plane a sphere is located. */ intersectPlane(plane: Plane): number; } //# sourceMappingURL=bounding-sphere.d.ts.map