#linear-algebra #algebra #graphics #gamedev #maths

linbra

Easily do linear algebra in game development, graphics and other sorts of calculations using vectors and matrices

3 releases

0.0.3 Apr 25, 2023
0.0.2 Apr 24, 2023
0.0.1 Mar 13, 2023

#1978 in Math

MIT license

32KB
322 lines

linbra

Easily do linear algebra in game development, graphics and other sorts of calculations using vectors and matrices.

Overview

Since Github Markdown renderer refuses to display TeX code in tables, to get an overview of the library, visit this page.

Notes

Every implementation, function or item is documented mathematically and for programming. Browses the documentation in order to find the items and their functions to learn how to use them!

This project is under continuous development. Don't hesitate to contribute (pull requests) or ask for new things to be introduced in the library (issues).


lib.rs:

Easily do linear algebra in game development, graphics and other sort of calculations using vectors and matrices.

Every implementation, function or item is documented mathematically and for programming. Browses the items and their functions to learn how to use them!

Overview

  • Objects:
Mathematics Linbra Related types
$$ \begin{pmatrix} x_{1,1} & x_{1,2} & \dots & x_{1,C} \\ x_{2,1} & x_{2,2} & \dots & x_{2,C} \\ \vdots & \vdots & \ddots & \vdots \\ x_{R,1} & x_{R,2} & \dots & x_{R,C} \\ \end{pmatrix} $$ Matrix<T, C, R>
$$ \begin{pmatrix} a_{1} \\ a_{2} \\ \vdots \\ a_{n} \\ \end{pmatrix} $$ Vector<T, N>
  • Tools:
Mathematics Related traits and their functions
$$ \begin{pmatrix} x \\ y \\ \end{pmatrix} or \begin{pmatrix} x \\ y \\ z \\ \end{pmatrix} $$
$$ \begin{pmatrix} w \\ h \\ \end{pmatrix} or \begin{pmatrix} w \\ h \\ d \\ \end{pmatrix} $$
$$ \begin{pmatrix} r \\ g \\ b \\ \end{pmatrix} or \begin{pmatrix} r \\ g \\ b \\ a \\ \end{pmatrix} $$

No runtime deps