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...
 

Detailed Description

A Direction Element is a Euclidean Element wedged with Infinity.

It is invariant under translation, but can be used to generate translations.

Direction Types in 3D CGA

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);

or Shorthand Syntax

  auto tau = Par( Tnv(0,1,0) ).trs(5,0,0);

Translating

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);

Twisting

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

See also
for a helper class to build generators
Todo:
document twisting

Function Documentation

template<class A >
static auto vsr::cga::Round::dir ( const A &  s) -> decltype(direction(s))
inlinestatic

Direction of Round Element (shorthand)

Parameters
sa Direct Round
static DirectionVector vsr::cga::Round::direction ( const Pair p)
static

Direction of a Pair.

Parameters
pcga::Pair
See also
nga::direction for Generic implementation