# zalo/MathUtilities

A collection of some of the neat math and physics tricks that I've collected over the last few years.

Repository: https://github.com/zalo/MathUtilities
Canonical: https://ross.abutalabs.com/products/mathutilities
Language: C#
License: Unlicense
License Family: permissive
Topics: kalman-filter, neat, unity, unity3d, physics, utilities, math, motion, camera
Last push: 2024-08-24T20:37:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3490, "days_push": 739, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4755, forks 433 (observed 2026-08-28T04:08:58.878462+00:00)

## What it is
A collection of math and physics utility implementations in C# for Unity, covering techniques like Kabsch alignment, mesh deformation, signed distance fields, least-squares fitting, and Kalman filtering. It serves as a grab bag of well-documented, example-driven algorithms useful for game and simulation development.

## Use cases
- align two point clouds with optimal rigid rotation and translation
- deform a mesh smoothly around control points in Unity
- render and paint volumetric signed distance field textures
- fit a line or plane to a 3D point set
- smooth noisy sensor or motion data with a Kalman filter
- average multiple quaternions accurately
- learn math and physics tricks for game development

## When to choose
- you are building a Unity game or simulation and need robust math/physics helpers
- you want reference implementations of Kabsch, mesh deformation, or distance fields
- you need copy-paste utility code with visual examples and permissive licensing

## When to avoid
- you need a general-purpose math library outside Unity or without GameObject dependencies
- you require production-supported, versioned packages with API stability guarantees
- you need GPU-accelerated or highly optimized numerical computing at scale

## Facets
- artifact type: library
- maturity: active
- function: simulation, graphics, math
- domain: graphics, simulation, developer-tools
- platform: game-engine, cross-platform
- tags: unity3d, kalman-filter, kabsch, mesh-deformation, signed-distance-fields, least-squares, quaternions, physics-utilities, csharp, physics, game-development, algorithms

## Member repositories
- zalo/MathUtilities (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:58.878462+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:54.019011+00:00, confidence not recorded.
  - readme: https://github.com/zalo/MathUtilities (fetched 2026-08-28T04:08:58.878462+00:00, sha 0a6b8d65f953)
- Data as of 2026-08-30T08:39:29.467469+00:00.
