go-glmatrix is a golang version of glMatrix, which is ``designed to perform vector and matrix operations stupidly fast''.
package main import ( "fmt" glm "github.com/technohippy/go-glmatrix" ) func main() { pers := glm.Mat4Create() // pers is just a float64 slice glm.Mat4Perspective(pers, glm.ToRadian(45), 640./480, 0.1, 200.) fmt.Println(glm.Mat4Str(pers)) }See the documentation for glMatrix
MIT