vecmat

Crates.iovecmat
lib.rsvecmat
version0.7.8
sourcesrc
created_at2017-05-18 07:03:28.130741
updated_at2022-04-21 02:17:40.980204
descriptionLow-dimensional vector algebra with min_const_generics support
homepagehttps://github.com/agerasev/vecmat-rs
repositoryhttps://github.com/agerasev/vecmat-rs
max_upload_size
id15012
size225,436
Sam Demin (nthend)

documentation

https://docs.rs/vecmat

README

vecmat

Crates.io Docs.rs Github Actions License

Low-dimensional vector algebra with const generics support.

Cargo features

  • std - use std. Crate could be used with no_std.
  • rand - distributions for generating random entities.
  • approx - approximate comparison.

All these features are enabled by default.

Documentation

Content

Primitives

  • Vector.
  • Matrix.
  • Complex and Quaternion.

Transformations

  • Shift.
  • Linear.
  • Affine.
  • Rotation2 and Rotation3.
  • Moebius (over Complex and Quaternion).

Functionality

Implemented

  • min_const_generics support.
  • Vector and matrix arithmetcs (+, -, *, /, %).
  • Integer vectors and matrices (including div_floor, mod_floor and bitwise).
  • Boolean vectors and matrices (comparison, all, any).
  • Support for non-Copy (and non-Clone) elements.
  • into_iter() for vectors (and map, zip, unzip, fold, scan, etc.).
  • dot, cross and outer products for vectors.
  • Matrix-matrix and matrix-vector multiplication.
  • Square matrix determinant and inversion.

Planning

  • Eigen- and singular decomposition for matrices.
  • Rotation4.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 152

cargo fmt