Skip to content
Projects

datenwolf/linmath.h has 1,069 GitHub stars and 141 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-09 10:44 UTC. Last push 2023-05-31.

How these counts are measured

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

Measured star growth

in 24h
+1
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

linmath.h -- A small library for linear math as required for computer graphics

CircleCI

linmath.h provides the most used types required for programming computer graphics:

  • vec3 -- 3 element vector of floats
  • vec4 -- 4 element vector of floats (4th component used for homogenous computations)
  • mat4x4 -- 4 by 4 elements matrix, computations are done in column major order
  • quat -- quaternion

The types are deliberately named like the types in GLSL. In fact they are meant to be used for the client side computations and passing to same typed GLSL uniforms.

Explore related projects