RecursiveAI.OneMath
0.1.0-preview.5
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
<PackageReference Include="RecursiveAI.OneMath" Version="0.1.0-preview.5" />
<PackageVersion Include="RecursiveAI.OneMath" Version="0.1.0-preview.5" />
<PackageReference Include="RecursiveAI.OneMath" />
paket add RecursiveAI.OneMath --version 0.1.0-preview.5
#r "nuget: RecursiveAI.OneMath, 0.1.0-preview.5"
#:package RecursiveAI.OneMath@0.1.0-preview.5
#addin nuget:?package=RecursiveAI.OneMath&version=0.1.0-preview.5&prerelease
#tool nuget:?package=RecursiveAI.OneMath&version=0.1.0-preview.5&prerelease
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:
Math32andMath64— 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) andSegmentPredicates, adaptive with exact fallback (after Shewchuk 1997). - Fixed-point bridge:
FixedBridgeconverts 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 | Versions 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. |
-
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.