Crate geometric_algebra[][src]

Modules

epga1d
epga2d
epga3d
hpga1d
hpga2d
hpga3d
ppga1d
ppga2d
ppga3d
simd

Macros

match_architecture
swizzle

Traits

Automorphism

Negates elements with grade % 2 == 1

Conjugation

Negates elements with (grade + 3) % 4 < 2

Dual

Element order reversed

GeometricProduct

General multi vector multiplication

InnerProduct

Geometric product grade filtered by t == (r - s).abs()

Inverse

Exponentiation by scalar -1.0

LeftContraction

Geometric product grade filtered by t == s - r

Magnitude

Length as scalar

One

All elements set to 0.0, except for the scalar, which is set to 1.0

OuterProduct

Geometric product grade filtered by t == r + s

Powi

Exponentiation by a scalar integer

RegressiveProduct

Dual of the geometric product grade filtered by t == r + s

Reversal

Negates elements with grade % 4 >= 2

RightContraction

Geometric product grade filtered by t == r - s

ScalarProduct

Geometric product grade filtered by t == 0

Signum

Direction without magnitude (set to scalar -1.0 or 1.0)

SquaredMagnitude

Square of the magnitude

Transformation

self * other * self.reversion()

Zero

All elements set to 0.0