OpenGL Mathematics Library
- A header only C++ mathematics library for Computer Graphics software
- Mirrors naming conventions of GLSL
- Site
- Repo
Tensors
- vec<L, T, Q>
- Template
- L = length
- T = typename
- Q = qualifier
- e.g. vec3 = vec<3, float, defaultp>
- e.g. ivec2 = vec<2, int, defaultp>
- length(vec)
- normalize(vec)
- dot(vec, vec)
- cross(vec, vec)
- Template
- mat<C, R, T, Q>
- Template
- C = # columns
- R = # rows
- T = typename
- Q = qualifier
- e.g. mat4 = mat<4, 4, float, defaultp>
- e.g. mat2x3 = mat<2, 3, float, defaultp>
- Template
Functions
- Trig
- cos, sin, tan
- cosh, sinh, tanh
- acos, asin, atan
- acosh, asinh, atanh