GeometryUtils
katanakit-js / GeometryUtils
Variable: GeometryUtils
Section titled “Variable: GeometryUtils”const GeometryUtils: { area: GeometryAreaService; perimeter: GeometryPerimeterService; volume: GeometryVolumeService;};Defined in: core/services/geometry.service.ts:551
Consolidated pure geometry utilities namespace. Groups area, perimeter and volume calculations (no shared mutable state).
Applies the Facade pattern: exposes the three Singleton services
(GeometryAreaService, GeometryPerimeterService,
GeometryVolumeService) under area, perimeter and volume.
Type Declaration
Section titled “Type Declaration”area: GeometryAreaService;perimeter
Section titled “perimeter”perimeter: GeometryPerimeterService;volume
Section titled “volume”volume: GeometryVolumeService;Example
Section titled “Example”import { GeometryUtils } from "katanakit-js";
GeometryUtils.area.useCircle(5); // "78.54"GeometryUtils.perimeter.useCircle(5); // "31.42"GeometryUtils.volume.useSphere(3); // "113.10"