Crate geometric_algebra[][src]

Modules

complex
ppga2d
ppga3d
simd

Macros

match_architecture
swizzle

Traits

Automorph

Negates elements with grade % 2 == 1

Conjugate

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

Reflection

self * other * self

RegressiveProduct

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

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)

SquaredMagnitude

Square of the magnitude

Transformation

self * other * self.transpose()

Transpose

Negates elements with grade % 4 >= 2

Zero

All elements set to 0.0