Skip to content
a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
Branch: master
Clone or download
datenwolf Merge pull request #24 from adrianbroher/master
Add vec{2,3,4} minimum and maximum functions
Latest commit 057dd68 Feb 7, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENCE LICENCE file adjusted Nov 11, 2013
README fixed some bugs in mat4x4_rotate and mat4x4_ortho Jan 5, 2013


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

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

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.

You can’t perform that action at this time.