ga2

Crates.ioga2
lib.rsga2
version0.3.2
created_at2021-05-25 19:30:46.816504+00
updated_at2025-04-26 00:59:46.69803+00
descriptionCommon types for 2D geometric algebra
homepage
repositoryhttps://gitlab.com/porky11/ga2
max_upload_size
id401953
size20,249
Fabio Krapohl (porky11)

documentation

README

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 the data-stream feature)
  • Allows parsing and formatting of geometric algebra types using the token-parser crate (enabled by the parsable feature)
Commit count: 46

cargo fmt