---
title: "onemath cookbook"
url: https://recursiveai.org/onemath/cookbook/
description: "Short recipes for common OneMath tasks, each with complete code you can copy."
version: "1.0.0"
---

# onemath cookbook

Short recipes for common OneMath tasks, each with complete code you can copy.

## Recipes

- [Exact geometric predicates](https://recursiveai.org/onemath/cookbook/exact-predicates/index.md): Decide orientation, in-circle and segment intersection with OneMath’s exact predicates, and see how often the naive floating-point determinant gets the…
- [Port from System.Numerics](https://recursiveai.org/onemath/cookbook/port-from-system-numerics/index.md): Move matrix code from System.Numerics to OneMath without silently transposing your transforms: the conventions are opposite, and the conversions handle it.
- [The fixed-point bridge](https://recursiveai.org/onemath/cookbook/fixed-point-bridge/index.md): Convert between Q31.32 fixed-point world coordinates and double with OneMath’s FixedBridge, exactly, with one documented rounding where one is needed and…
- [Inertia tensors and principal axes](https://recursiveai.org/onemath/cookbook/inertia-tensors/index.md): Build the mass properties of a body from parts with OneMath: solid shapes, a combined center of mass and inertia tensor, and its principal axes, with the…
- [Check that two machines agree](https://recursiveai.org/onemath/cookbook/check-machines-agree/index.md): Hash a fixed OneMath computation and compare the hash across machines, runtimes and CPU features: the cheapest way to confirm a deterministic simulation…
