Crate g_2_0_0

source ·
Expand description

Library made for utilising geometric algebra with only two basis vectors each squaring to 1 or G(2, 0, 0) in common notation. The main object here is a multivector, however, there is also an exponential function allow the generation of Rotors in 2d if you prefer. This is a personal project of mine but I published it on crates in case someone finds it interesting. If you don’t know about geometric algebra, check out this swift introduction: https://youtu.be/60z_hpEAtD8?si=3R4PWa4RDw0soUXw Also, vga refers to Vanilla Geometric Algebra

Structs§

Functions§

  • The exponential of the 2d psuedoscalar squares to -1 so it is also i. This means we can use eulers formula. Also if you multiply a vector on the left and right by the exponential of angle in 2d, rotates the vector anticlockwise by double the angle.