UNPKG

@thi.ng/geom

Version:

Functional, polymorphic API for 2D geometry types & SVG generation

15 lines 366 B
import type { MultiFn1 } from "@thi.ng/defmulti"; import type { IShape } from "./api.js"; /** * Returns the volume of given 3D shape. Returns 0 for all others. * * @remarks * Currently only implemented for: * * - {@link AABB} * - {@link Sphere} * * @param shape */ export declare const volume: MultiFn1<IShape, number>; //# sourceMappingURL=volume.d.ts.map