#vector #3d #class

math_vector

3D vector class

1 unstable release

0.2.1 Oct 8, 2022

#1381 in Math

28 downloads per month
Used in signed_distance_fields

MIT license

56KB
1.5K SLoC

math_vector, 3d vectors crate for rust

  1. vectors ?
  2. using math_vector
  3. changelog

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

  1. a brand new 2d vector library (now in rust 2021)
  2. moving to 3d to be more generic (be carefull when compiling old code though)
  3. fast inverse square root
  4. more vector handling functions

Dependencies