Skip to content

Cell volume demo ​

The same cell_volume function as the Rust API, the CLI and Python, running in the browser through the WebAssembly package. The demo works offline after the page loads; it never calls a server.

Loading the WebAssembly module…

The volume follows

V=abc1−cos2⁡α−cos2⁡β−cos2⁡γ+2cos⁡αcos⁡βcos⁡γ

with lengths in Angstrom and angles in degrees. An invalid cell returns the stable invalid_input code from the WASM module.