# FreyaHolmer/Mathfs

Expanded Math Functionality for Unity

Repository: https://github.com/FreyaHolmer/Mathfs
Canonical: https://ross.abutalabs.com/products/mathfs
Language: C#
License: MIT
License Family: permissive
Last push: 2026-07-31T09:08:19+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 2307, "days_push": 33, "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 2748, forks 191 (observed 2026-08-28T04:07:17.779520+00:00)

## What it is
Mathfs is an expanded math library for Unity written in C#, providing functionality beyond Unity's built-in Mathf. It covers 2D intersection tests, curves and splines (Bézier, Hermite, Catmull-Rom, B-Spline, NURBS), trajectory math, and triangle, polygon, and circle geometry.

## Use cases
- compute bezier and spline curves in Unity
- calculate projectile launch angles and trajectories
- test intersections between rays, lines, segments and circles
- compute polygon area and winding number
- get circumcircle and incircle of a triangle
- expand Unity's Mathf with more math helpers

## When to choose
- you're building a Unity game needing advanced 2D geometry or spline math
- you want projectile/trajectory calculations out of the box
- you prefer a lightweight MIT-licensed math library over a full math framework

## When to avoid
- you're not using Unity (the library targets Unity 2021.2+)
- you need 3D intersection tests or a full computational geometry suite
- you need strict API stability, since the author edits APIs freely between versions

## Facets
- artifact type: library
- maturity: active
- function: math, graphics, simulation
- domain: graphics, mathematics
- platform: game-engine
- tags: unity, geometry, splines, bezier-curves, trajectory-math, 2d-intersections, polygon-math, gamedev-math, game-development, algorithms, c#

## Member repositories
- FreyaHolmer/Mathfs (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:17.779520+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-30T08:18:59.637964+00:00, confidence not recorded.
  - readme: https://github.com/FreyaHolmer/Mathfs (fetched 2026-08-28T04:07:17.779520+00:00, sha a670da4afe7a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
