13 releases

0.2.3 Jan 26, 2017
0.2.2 Jan 3, 2017
0.2.1 Oct 8, 2016
0.2.0 Dec 13, 2015
0.1.0 Feb 26, 2015

#106 in Graphics APIs

Download history 36/week @ 2019-07-24 4/week @ 2019-07-31 25/week @ 2019-08-07 16/week @ 2019-08-14 68/week @ 2019-08-21 63/week @ 2019-08-28 144/week @ 2019-09-04 48/week @ 2019-09-11 215/week @ 2019-09-18 46/week @ 2019-09-25 25/week @ 2019-10-02 17/week @ 2019-10-09 41/week @ 2019-10-16 18/week @ 2019-10-23 55/week @ 2019-10-30

169 downloads per month
Used in 3 crates

MIT license

205KB
4K SLoC

GLSL Mathematics for Rust.

Build Status

Another Rust mathematics library for graphics applications.

Inspired by the great GLM library for C++, glm-rs implements the data types, operators and built-in functions defined in GLSL specification to help graphics programmers who are familiar with GLSL, so they do not need to learn more than one math API.

Because of the not so small syntax/semantics difference between Rust and GLSL, some parts of GLSL are missing or changed, some functions are added to complete the functionalities. See the glm-rs documentation for full list of differences.

The project is in beta status until the major version reaches to 1.

Thanks

  • GLM by G-Truc (Christophe Riccio). The implementation of noise functions are directly translated from GLM.
  • Creators of the Rust for the language.

License

The MIT License (MIT)

Dependencies

~3MB
~77K SLoC