1 unstable release
0.2.1 | Oct 8, 2022 |
---|
#1519 in Math
Used in signed_distance_fields
56KB
1.5K
SLoC
math_vector, 3d vectors crate for rust
vectors ?
A simple and convenient 3D vector type without excessive use of external dependencies. If other vector crates are swiss-army knives, math_vector is a spoon; safe, intuitive, and convenient. As an added bonus, you won't run into any excursions with the law using this library thanks to the awfully permissive Unlicense.
using math_vector
You probably don't need any documentation to get by with the Vector
type; functions like dot
, length
, and angle
are hopefully all named intuitively enough for you feel them out. If you do find yourself wondering about certain bits of functionality, then be sure to take a look at the in-code documentation, where you can find examples and explanations of everything on offer.
To add math_vector as a dependency in any of your rust project, just add the following in your cargo.toml dependencies' section :
math_vector = { git = "https://github.com/ThomasByr/rust-math_vector" }
changelog
- a brand new 2d vector library (now in rust 2021)
- moving to 3d to be more generic (be carefull when compiling old code though)
- fast inverse square root
- more vector handling functions