# google/mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.

Repository: https://github.com/google/mathfu
Canonical: https://ross.abutalabs.com/products/mathfu
Homepage: http://google.github.io/mathfu
Language: C++
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2023-03-03T10:55:31+00:00

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

## Adoption (not part of the score)
Stars 1399, forks 182 (observed 2026-08-28T04:04:36.950237+00:00)

## What it is
MathFu is a C++ math library developed primarily for games, providing vector, matrix, and quaternion classes with SIMD optimization. It supports basic geometry and linear algebra operations suitable for graphics, animation, and physics calculations.

## Use cases
- perform vector and matrix math in a C++ game engine
- compute quaternion rotations and slerp for animation systems
- build geometry for OpenGL rendering
- use SIMD-optimized linear algebra on ARM and x86
- implement physics calculations in a cross-platform C++ project

## When to choose
- you need a lightweight, efficient C++ math library for game development
- you want SIMD-accelerated vector/matrix/quaternion operations across Android, Linux, macOS, and Windows
- you prefer a simple, portable library with minimal dependencies

## When to avoid
- you need a full-featured linear algebra library with advanced decompositions or GPU support
- you want a library with frequent updates and active maintenance
- you need GPU shader math or a CUDA/OpenCL-based solution

## Facets
- artifact type: library
- maturity: maintenance
- function: math, graphics, simulation
- domain: graphics
- platform: cpp, windows, cross-platform
- tags: linear-algebra, simd, vectors, matrices, quaternions, game-math, header-only, game-development, algorithms, android, linux, macos

## Member repositories
- google/mathfu (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.950237+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-30T04:39:10.629088+00:00, confidence not recorded.
  - readme: https://github.com/google/mathfu (fetched 2026-08-28T04:04:36.950237+00:00, sha 6981bc372f1d)
  - homepage: http://google.github.io/mathfu (fetched 2026-08-29T11:53:21.997205+00:00, sha eee29b28c481)
- Data as of 2026-08-30T08:39:29.467469+00:00.
