WebAssembly Bindings - Interactive Examples
Explore fundamental geometric primitives and their operations.
Demonstrate ray intersection algorithms with various geometric primitives.
Interactive 3D scene rendered to SVG with camera controls.
Common Core Geometry is a high-performance 3D geometry engine written in Rust and compiled to WebAssembly. It provides a comprehensive set of primitives and operations for computational geometry tasks.
Build the package from source:
bun run build:web
Use it in your project:
import init, { Point3D, Vector3D } from 'path/to/geometry';
await init();
const p1 = new Point3D(0, 0, 0);
const p2 = new Point3D(3, 4, 0);
const distance = p1.distanceTo(p2); // 5.0
This library supports multiple build targets: