aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b80f56fdf8a283f6257ddc5c338fee3a0a6f7e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# linmath.h -- A small library for linear math as required for computer graphics

[![CircleCI](https://circleci.com/gh/datenwolf/linmath.h.svg?style=svg)](https://app.circleci.com/pipelines/github/datenwolf/linmath.h)

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.