13 releases

Uses old Rust 2015

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

#328 in Graphics APIs

Download history 197/week @ 2023-11-20 150/week @ 2023-11-27 127/week @ 2023-12-04 171/week @ 2023-12-11 192/week @ 2023-12-18 129/week @ 2023-12-25 85/week @ 2024-01-01 248/week @ 2024-01-08 160/week @ 2024-01-15 147/week @ 2024-01-22 109/week @ 2024-01-29 142/week @ 2024-02-05 176/week @ 2024-02-12 200/week @ 2024-02-19 180/week @ 2024-02-26 200/week @ 2024-03-04

791 downloads per month
Used in 9 crates (6 directly)

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

~4.5MB
~91K SLoC