datenwolf/linmath.h

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

C

1,063

37 commits

updated May 31, 2023

See the code

README

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.

datenwolf/linmath.h

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

C

1,063

37 commits

updated May 31, 2023

See the code

README

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.

Project health

Overall

2.8/10

Maintained

0/10

Code review

5/10
OpenSSF Scorecard

Significant stargazers

ruki

1,334 followers · starred Oct 2023

Parker Lougheed

446 followers · starred Aug 2017

larpon

169 followers · starred Dec 2025

Dmitry V. Sokolov

4,791 followers · starred Dec 2018