Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datenwolf/linmath.h
a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
https://github.com/datenwolf/linmath.h
Last synced: about 2 months ago
JSON representation
a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
- Host: GitHub
- URL: https://github.com/datenwolf/linmath.h
- Owner: datenwolf
- License: wtfpl
- Created: 2012-01-05T23:43:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T19:52:33.000Z (about 1 year ago)
- Last Synced: 2024-02-01T09:48:55.685Z (5 months ago)
- Language: C
- Homepage:
- Size: 73.2 KB
- Stars: 852
- Watchers: 44
- Forks: 139
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Lists
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- AwesomeCppGameDev - linmath.h
- awesome-cpp-cn - linmath.h
- fucking-awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-stars - linmath.h
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp-completed - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp-completed - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
- awesome-cpp - linmath.h - A lean linear math library, aimed at graphics programming. [WTFPL] (Math)
README
# 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` -- quaternionThe 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.