Unity-Technologies/Unity.Mathematics
The C# math library used in Unity providing vector types and math functions with a shader like syntax observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3247
- days_rel: n/a
- days_push: 27
- n_releases_24m: 0
Adoption not part of the score
1442 stars · 158 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Unity.Mathematics is a C# math library providing vector types (float2, float3, float4, etc.) and math functions with an HLSL/GLSL-like syntax. It is used by Unity's Burst compiler to generate highly optimized SIMD native code across platforms.
Use cases
- perform vector math in C# with shader-like syntax
- write SIMD-optimized math code compiled by Burst
- use float3/float4 vector types in Unity DOTS projects
- port HLSL/GLSL math logic to C#
- do dot products, normalization, and matrix math in games
- write high-performance graphics and simulation code in C#
When to choose
- you are developing with Unity, especially DOTS or Burst
- you want a graphics/shader-style math API in C#
- you need SIMD-optimized vector math across platforms
When to avoid
- you need a general-purpose .NET math library outside Unity
- you prefer System.Numerics object-oriented vector API
- you cannot tolerate breaking API changes, as the API is still evolving
Facets
library · maturity active
math graphics developer-tools cross-platform cpp csharp unity simd vector-types shader-syntax burst-compiler game-engine game-development
1 source
- readme: https://github.com/Unity-Technologies/Unity.Mathematics · fetched 2026-08-28 · 45fd38814507
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Unity-Technologies/Unity.Mathematics | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="Unity-Technologies/Unity.Mathematics")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem