github.com/xlab/linmath@v0.0.0-20220922225318-40b6290c3b40/README.md (about)

     1  linmath [![GoDoc](https://godoc.org/github.com/xlab/linmath?status.svg)](https://godoc.org/github.com/xlab/linmath)
     2  -------
     3  
     4  A small library for linear math as required for computer graphics.
     5  This is a Go-lang port of [github.com/datenwolf/linmath.h](https://github.com/datenwolf/linmath.h).
     6  
     7  ```
     8  linmath.h provides the most used types required programming computer graphice:
     9  
    10  vec3 -- 3 element vector of floats
    11  vec4 -- 4 element vector of floats (4th component used for homogenous computations)
    12  mat4x4 -- 4 by 4 elements matrix, computations are done in column major order
    13  quat -- quaternion
    14  
    15  The types are deliberately named like the types in GLSL. In fact they are meant to
    16  be used for the client side computations and passing to same typed GLSL uniforms.
    17  ```
    18  
    19  ## License
    20  
    21  MIT (re-licensed from the WTFPL).