4 releases (2 breaking)
0.3.1 | Apr 28, 2024 |
---|---|
0.3.0 | Oct 10, 2022 |
0.2.0 | Jan 9, 2022 |
0.1.0 | May 25, 2021 |
#482 in Math
259 downloads per month
Used in 3 crates
16KB
529 lines
This crate provides common types for 2D 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 2D 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 2D 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 thedata-stream
feature) - Allows parsing and formatting of geometric algebra types using the
token-parser
crate (enabled by theparsable
feature)
Dependencies
~0.4–0.9MB
~19K SLoC