VISH
0.2
|
A four-dimensional Bi-Vector which is span by two vectors to define a plane. More...
#include </home/werner/origo/vish/ocean/eagle/STA.hpp>
A four-dimensional Bi-Vector which is span by two vectors to define a plane.
It is represented by six numbers in the STA.
Bi-vectors are useful specify rotations. The sum of a bivector and a scalar yields a rotor, which can be applied to any object such as a vector (sweeping a direction) or another bivector (sweeping a plane).
A bi-vector is constructed from two vectors:
vector A, B; bivector AB = bivector(A,B);
The wedge operator of two vectors also yields a bi-vector and is the same operation:
vector A, B; bivector& AB = A^B;
Alternatively the bivector can be setup by explicit specification of its component, which corresponds to a normal vector. Given a bivector, the associated normal vector can be retrieved using the star operator:
bivector A; vector normalA = *A;
bivector Eagle::STA::CartesianChart4D::bivector::operator* | ( | ) | const [inline] |
Star operator, yields the bivector that is dual to this bi-vector.
CHECK SIGNS and http://mathworld.wolfram.com/DualBivector.html