versor
3.0
C++11 library for Geometric algebra
|
A Rotor is used to transform geometric elements of the algebra.
A Rotor can be operated on by vsr::cga::Gen static methods.
They are typically created by passing in some 2-blade to a method in vsr::gen, and the result applied to any element x by calling the x.spin(<a Rotor>) method
For instance, to create a quaternionic rotation we use a Euclidean plane of rotation
auto v = Vec(1,0,0); auto q = Gen::rotor( Biv(PI,0,0) ); auto n = v.spin(q);