# EricLengyel/Terathon-Math-Library

C++ math library for 2D/3D/4D vector, matrix, quaternion, and geometric algebra.

Repository: https://github.com/EricLengyel/Terathon-Math-Library
Canonical: https://ross.abutalabs.com/products/terathon-math-library
Homepage: https://projectivegeometricalgebra.org
Language: C++
License: MIT
License Family: permissive
Topics: geometric-algebra, linear-algebra, quaternions, 3d-math-library
Last push: 2026-07-27T18:07:57+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 2095, "days_push": 37, "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 1032, forks 86 (observed 2026-08-28T04:03:18.218149+00:00)

## What it is
A C++ math library providing classes for 2D/3D/4D vectors, matrices, quaternions, dual numbers, and projective/rigid geometric algebra elements like lines, planes, motors, and flectors. It is designed for 3D graphics and game engine development, authored by Eric Lengyel.

## Use cases
- 3d vector and matrix math for game engines
- quaternion rotations for 3d graphics
- geometric algebra operations like lines planes and motors
- rigid body transforms and motion operators
- 2d and 3d transform math in c++

## When to choose
- you need high-performance 3D math primitives in C++ for graphics or game engines
- you want to work with rigid geometric algebra (motors, flectors, flat points)
- you need a lightweight MIT-licensed math library without heavy dependencies

## When to avoid
- you need a general-purpose linear algebra library with arbitrary-size matrices or GPU support
- you work in a language other than C++
- you need SIMD-explicit or GPU-accelerated math kernels out of the box

## Facets
- artifact type: library
- maturity: active
- function: math, graphics, simulation
- domain: graphics
- platform: cpp, cross-platform
- tags: geometric-algebra, linear-algebra, quaternions, 3d-math, vectors, matrices, game-engine-math, algorithms, game-development

## Member repositories
- EricLengyel/Terathon-Math-Library (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:18.218149+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-30T07:06:42.918592+00:00, confidence not recorded.
  - readme: https://github.com/EricLengyel/Terathon-Math-Library (fetched 2026-08-28T04:03:18.218149+00:00, sha af2acf08b435)
- Data as of 2026-08-30T08:39:29.467469+00:00.
