FixedMathSharp is an engine-agnostic Q32.32 math library for .NET games, lockstep simulations, procedural generation, and replays. Use integer-backed scalars, vectors, rotations, transforms, geometry, and seeded random streams when the same inputs must produce the same result.
dotnet add package FixedMathSharpusing FixedMathSharp;
Fixed64 tick = Fixed64.One / 60;
Vector3d velocity = new(6, 0, 2);
Vector3d displacement = velocity * tick;| Package | Use it for |
|---|---|
| FixedMathSharp | Core math with MemoryPack support |
| FixedMathSharp.Lean | The same math API without a direct MemoryPack dependency |
| FixedMathSharp.Chronicler and Lean | Record hashes and exact simulation-time conversions |
| FixedMathSharp.FluentAssertions and Lean | Assertions for fixed-point tests |
Packages target .NET Standard 2.1 and .NET 10. Unity users can install FixedMathSharp-Unity.
See Support, Security, and the Code of Conduct. FixedMathSharp uses the MIT License. See NOTICE for branding and redistribution terms.