| Crates.io | cga2d |
| lib.rs | cga2d |
| version | 3.0.0 |
| created_at | 2024-09-21 17:46:28.860692+00 |
| updated_at | 2025-08-22 17:39:59.35223+00 |
| description | 2D Conformal Geometric Algebra primitives |
| homepage | |
| repository | https://github.com/HactarCE/cga2d |
| max_upload_size | |
| id | 1382376 |
| size | 101,802 |
cga2d is a library for 2D Conformal Geometric Algebra with static types for various objects. It has traits for Multivector and Blade and types for blades of each grade, in addition to Rotor, Flector, and Rotoflector.
There is currently no general-purpose multivector type with all 16 components, but I am open to adding one in the future if there is use for one.
Read [the documentation][docs] for more details.
The scalar type is f64. I'm open to adding support for other scalar types, probably via feature flags. I'd prefer not to use generics, because that would greatly hinder ergonomics.