DETERMINISTIC Q32.32 MATH FOR .NET
Build simulations that agree.
FixedMathSharp brings scalar math, vectors, rotations, transforms, random streams, and computational geometry together under one explicit fixed-point model.
Choose your path
Fixed-point math
Start with Fixed64, scalar algorithms, vectors, quaternions,
matrices, and FixedTransform.
Geometry
Explore bounds, rays, segments, triangles, oriented boxes, anchors, and full-domain spatial queries.
Unity packages
Use the maintained Unity host for UPM packages, engine interop, samples, and the Burst-oriented Lean variant.
Guides
- Get started with package choice and a first calculation.
- Understand Fixed64: range, precision, rounding, and conversions.
- Keep full-domain arithmetic correct through wide intermediates.
- Use coordinate conventions across vectors, matrices, and host adapters.
- Choose geometry queries and read the finite-shape contact guarantees.
- Format diagnostic values separately from persisted state.
Part of the LSF ecosystem
FixedMathSharp provides deterministic math for libraries, games, simulations, and tools throughout the Lockstep Simulation Framework ecosystem:
Resources
- Chronicler companion API — exact time conversions and deterministic record-hash extensions.
- Behavioral guides
- Source, issues, and releases
- Core test-suite coverage report
- Migration guide
- Chronicler companion: record hashes and exact time conversions
The API reference is generated from the library's source XML documentation. The guides explain cross-cutting behavior such as Q32.32 representation, overflow, coordinate conventions, and full-domain arithmetic.