# datenwolf/linmath.h

a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions

Repository: https://github.com/datenwolf/linmath.h
Canonical: https://ross.abutalabs.com/products/linmathh
Language: C
License: WTFPL
License Family: permissive
Last push: 2023-05-31T19:52:33+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": 5354, "days_push": 1190, "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 1059, forks 139 (observed 2026-08-28T04:03:25.470872+00:00)

## What it is
A lean, header-only C library providing linear math types for graphics programming: vec3, vec4, mat4x4, and quaternions. Types are named to match GLSL so results can be passed directly to shader uniforms.

## Use cases
- do vector and matrix math for OpenGL or Vulkan applications
- compute transformations with 4x4 matrices in C
- use quaternions for 3D rotations
- pass computed values directly to GLSL uniforms
- add lightweight linear algebra to a game engine without dependencies
- implement camera and model-view-projection math

## When to choose
- you need a small, dependency-free linear math library in C
- you want GLSL-compatible types for graphics programming
- you prefer a single header you can drop into any project

## When to avoid
- you need double precision or SIMD-optimized math
- you need general-purpose linear algebra like arbitrary-size matrices or decompositions
- you work in a language other than C

## Facets
- artifact type: library
- maturity: stable
- function: math, graphics, sdk
- domain: graphics
- platform: cross-platform, c
- tags: header-only, linear-algebra, vectors, matrices, quaternions, glsl-compatible, single-file, game-development, algorithms

## Member repositories
- datenwolf/linmath.h (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.470872+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-30T06:57:13.693182+00:00, confidence not recorded.
  - readme: https://github.com/datenwolf/linmath.h (fetched 2026-08-28T04:03:25.470872+00:00, sha f6ca88225f4b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
