1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 26, 2025

#1173 in Math

Download history 96/week @ 2025-04-22

96 downloads per month

MIT/Apache

23KB
690 lines

This crate provides common types for 3D geometric algebra in Rust.

It includes the following key types:

  • Vectors (Vector)
  • Bivectors (Bivector)
  • Rotors (Rotor)

The crate aims to offer a concise and efficient implementation of 3D geometric algebra, making it suitable for use in game development, mathematical applications, and other domains that require geometric algebra.

Features

  • Provides a simple and intuitive API for working with 3D geometric algebra types
  • Supports basic arithmetic operations (addition, subtraction, multiplication, division) on vectors, bivectors, and rotors
  • Implements common mathematical operations like dot product, inner product, and outer product
  • Offers convenient methods for creating and manipulating vectors, bivectors, and rotors
  • Supports serialization and deserialization of geometric algebra types using the data-stream crate (enabled by the data-stream feature)
  • Allows parsing and formatting of geometric algebra types using the token-parser crate (enabled by the parsable feature)

Dependencies

~0.4–0.9MB
~19K SLoC