1 unstable release
0.0.2 | Jan 4, 2019 |
---|
#10 in #oxygen
Used in oxygen_quark
12KB
215 lines
Oxygen Quark Derive
Powered by Rust. A macro library for easy implementation of matrices and vectors, primarily developed for the Oxygen Engine. Developed by Hampus Avekvist.
Example
[dependencies]
oxygen_quark_derive = "*"
use oxygen_quark_derive::Matrix;
#[derive(Matrix)]
struct TestMatrix {
// Note, it requires that you separate the width
// and the height like this. It won't parse the
// matrix correctly otherwise. Height first,
// then width.
data: [f32; 2 * 2],
}
fn main() {...}
How to contribute
Have Rust setup and clone the repository. Start coding and have fun! I would recommend that you check out the list of issues to see what you could fix, and if you don't find anything interesting there, just go and check out the projects instead.
Otherwise, just issue your own bugs and features with the issue tracker. I'll be sure to check them out and tag them accordingly!
Implemented
#[derive(Matrix)]
(although, it lacks some correctness here and there, help to fix this is appreciated)
To be implemented
#[derive(Vector)]
Dependencies
~2MB
~46K SLoC