Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.5 KB

File metadata and controls

42 lines (31 loc) · 1.5 KB

Vec-Utils / Bektor

Crates.io Version PyPI - Version docs.rs

A Rust crate for 3D vector math, quaternions, geometry, complex numbers, and angles. Python bindings are also available for much of the library.

  • f64 precision
  • Many matrix operations are zero copy and generic

Modules

  • vec3d: 3D vector operations
  • quat: Quaternion operations
  • matrix: Matrix operations
    • complex: A complex valued matrix
    • generic: Generic 2d matrx of any size or type
    • real: A real valued matrix
  • geometry: Geometry operations
    • circle, plane, sphere: Geometry primitives
    • intersection: Calculate intersections between geometry objects
  • complex: Complex numbers
  • angle: Angles in degrees and radians

Features

  • std: standard library support across all active dependencies (default)
  • matrix: matrix multiplicaiton and other operations, still missing a lot of features
  • rand: Random generation of types (default)
  • nalgebra: interop with nalgebra types
  • glam: interop with glam types
  • rkyv: zero-copy serialization
  • serde: serialization/deserialization

The only base dependencies are libm, thiserror

License

GPL-3.0-only See LICENSE for details