2 releases

Uses old Rust 2015

0.5.1 May 11, 2018
0.5.0 May 4, 2018

#1132 in Math

22 downloads per month
Used in siege-color

MIT license

94KB
2.5K SLoC

siege-math

MIT licensed

Documentation is available at https://docs.rs/siege-math

siege-math is a component within the Siege Engine MMO game engine.

The Siege Engine is an MMO game engine on the Vulkan API written in the Rust language.

siege-math provides primitives for Angle, Vector (including Direction and Point variants), Matrix, Quaternion, and Position types defined over any floating point type.

siege-math was developed in response to several other math crates (cgmath and nalgebra) going in directions slightly adverse to our usage. As a math library is actually a rather small thing, we were not too fussed about creating a new one.

Prefer Other Crates

cgmath and nalgebra are much better math crates. I would not recommending using this crate. I intend to move off of it myself.

Work TBD

SIMD is not yet available in stable rust. RFC 2366 (https://github.com/rust-lang/rfcs/pull/2366) is the latest in the chain of work to make that happen. Once it (or something like it) lands in stable rust, we can refactor to make use of SIMD for a significant performance increase. In the meantime, there is a crate "simd" and another "fake-simd" that might be useful for getting started.

Dependencies

~0.6–1.3MB
~28K SLoC