RecursiveAI.OneMath 0.1.0-preview.5

This is a prerelease version of RecursiveAI.OneMath.
There is a newer version of this package available.
See the version list below for details.
dotnet add package RecursiveAI.OneMath --version 0.1.0-preview.5
                    
NuGet\Install-Package RecursiveAI.OneMath -Version 0.1.0-preview.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RecursiveAI.OneMath" Version="0.1.0-preview.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OneMath" Version="0.1.0-preview.5" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneMath" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RecursiveAI.OneMath --version 0.1.0-preview.5
                    
#r "nuget: RecursiveAI.OneMath, 0.1.0-preview.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RecursiveAI.OneMath@0.1.0-preview.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RecursiveAI.OneMath&version=0.1.0-preview.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneMath&version=0.1.0-preview.5&prerelease
                    
Install as a Cake Tool

RecursiveAI.OneMath

Deterministic math for .NET: vectors, matrices, quaternions, elementary functions and exact geometric predicates that give the same bits on every OS, CPU, runtime, WebAssembly mode and thread count. No dependencies beyond the .NET base class library; NativeAOT and trimming compatible.

using RecursiveAI.OneMath;

double s = Math64.Sin(1e300);                       // correctly rounded, same on every platform
int side = ExactPredicates.Orient2D(0, 0, 1, 0, 0.5, 1e-300);  // +1, -1 or 0, never wrong
long raw = FixedBridge.FromDouble(1.5);            // Q31.32 fixed point <-> double, exact within +-2^21
  • Types: Vector2/3/4, Matrix2x2/3x3/4x4, Quaternion, Affine3, RigidTransform, Bounds2/3, each in float (F) and double (D) form, with a documented evaluation order.
  • Functions: Math32 and Math64 — sin, cos, tan, asin, acos, atan, atan2, exp, exp2, expm1, log, log2, log10, log1p, pow, cbrt, hypot, sinh, cosh, tanh — correctly rounded (the nearest float or double to the exact result).
  • Exact predicates: ExactPredicates (Orient2D, Orient3D, InCircle, InSphere) and SegmentPredicates, adaptive with exact fallback (after Shewchuk 1997).
  • Fixed-point bridge: FixedBridge converts Q31.32 integers to and from double, exact for magnitudes below 2^21 and rejecting beyond.
  • Physics math: symmetric 3x3 eigen decomposition and inertia tensors in RecursiveAI.OneMath.Physics.

Preview. This is a 0.x preview: the API may still change. Results are checked against exact references and compared across x64, arm64 and WebAssembly in the repository's hash matrix.

Full documentation, the normative notes and the changelog: https://github.com/recursive-ai-oss/onemath-csharp/blob/main/README.md. Licensed under MIT or Apache-2.0, at your option.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on RecursiveAI.OneMath:

Package Downloads
RecursiveAI.OnePath

Deterministic pathfinding and navigation for .NET: square, hex and voxel grids (A*, JPS, Theta*, HPA*, D* Lite, flow fields), graphs, tiled navigation meshes with 2D and 3D builders and queries, and ORCA crowds. Bit-identical results on every platform and across every release of a major version.

RecursiveAI.OnePhysics

Deterministic 2D and 3D rigid-body physics for .NET with identical results on every platform.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 588 10/28/2026
0.1.0-preview.5 317 10/28/2026

See CHANGELOG.md in the repository.