o
odin.langpkg.dev
packages / library / odin-geoalg

odin-geoalg

33f94eclibrary

Odin implementation of Geometric Algebra

MIT · updated 2 years ago

Geometric Algebra for Odin

An implementation of Geometric Algebra for in the Odin language. Other algebras will come as needed - issues welcome.

Supported Algebras

Currently available for f32. Plan to add support for f16 and f64 later - submit an issue if needed.

Notes

  • Formating of multi-vectors uses unicode for basis vectors and colors for additional clarity (on dark backgrounds at least). For example:
    point on plane: [0.200e₀₂₁, 1.400e₀₃₂, 1.000e₁₂₃]
    These features can be disabled if prefered then we prefer to avoid confusion with the exponential notation. Without Unicode, formating a multi-vector will result in:
    [1.000e0, 2.000e1, -1.500e2, -3.000e0e1]
    
    The use of unicode is just for pretty formating, the basis vector constants for each algebra are addressed as regular characters.

Examples

Coming soon!