versor
3.0
C++11 library for Geometric algebra
|
static DirectionVector | vsr::cga::Round::direction (const Pair &p) |
Direction of a Pair. More... | |
template<class A > | |
static auto | vsr::cga::Round::dir (const A &s) -> decltype(direction(s)) |
Direction of Round Element (shorthand) More... | |
A Direction Element is a Euclidean Element wedged with Infinity.
It is invariant under translation, but can be used to generate translations.
these can be cast to vsr::cga::Pair, vsr::cga::Circle, vsr::cga::Sphere and then translated:
auto tau = Pair( TangentVector(0,1,0) ).translate(5,0,0);
auto tau = Par( Tnv(0,1,0) ).trs(5,0,0);
The 2-blade entitity vsr::cga::DirectionVector can be used as generators of translations in longform:
using namespace vsr::cga; auto trs = Gen::translator( DirectionVector(.5,0,0) );
or in shorthand:
auto trs = Gen::trs( Drv(.5,0,0) );
or
auto trs = Gen::trs(.5,0,0);
vsr::cga::DualLine has a vsr::cga::DirectionVector component and can be fed as an argument into vsr::cga::Gen::motor to generate a twist
|
inlinestatic |