Skip to content

Akari202/vec-utils

Repository files navigation

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

About

a simple rust and python library of vector code i seem to rewrite a lot across projects

Resources

License

Stars

Watchers

Forks

Contributors