@vectojs/math
v0.1.1
Published
Standalone spatial and physics math utilities for VectoJS: spatial hash grid broad-phase and spring physics.
Downloads
936
Maintainers
Readme
@vectojs/math
Standalone spatial and physics math utilities for VectoJS.
Extracted from @vectojs/core so they can be consumed without pulling in the
scene-graph runtime. @vectojs/core re-exports everything here for backward
compatibility.
Exports
SpatialHashGrid— uniform-grid broad-phase for fast neighbor / hit queries.SpringPhysics— critically-dampable spring integrator for animated values.
Install
bun add @vectojs/mathUsage
import { SpatialHashGrid, SpringPhysics } from '@vectojs/math';