暫無描述

rexim 66e05328d1 Add xy and zw fields to V4 vectors 1 天之前
examples f0a19e92da Add nob build 1 周之前
src 66e05328d1 Add xy and zw fields to V4 vectors 1 天之前
thirdparty f0a19e92da Add nob build 1 周之前
.gitignore 2187374447 gitignore etags garbage 1 周之前
LICENSE b90c0551d8 Ready. Set. Go! 4 年之前
Makefile bc0b2d1bdb Add the usage example 4 年之前
README.md f0a19e92da Add nob build 1 周之前
la.h 66e05328d1 Add xy and zw fields to V4 vectors 1 天之前
nob.c 30f6609f2b Add components array union to each vector definition 1 周之前

README.md

Linear Algebra in C

Procedurally generated C library for Linear Algebra in 2D/3D Computer Graphics (equivalent of GLM). The goals are:

  • consistent naming scheme of the functions/types/macros,
  • human-readable source code despite being procedurally generated,
  • minimal amount of dependencies,

Quick Start

Grab la.h and use it as an stb-style header-only library. For more info on such libraries see: https://github.com/nothings/stb/blob/master/docs/stb_howto.txt

For a usage example see ./examples/ball.c

Regenerating la.h

$ cc -o nob nob.c
$ ./nob