versor  3.0
C++11 library for Geometric algebra
Static Public Member Functions | List of all members
vsr::nga::Flat Struct Reference

Generic ND Operations On Flat Typese.g. More...

#include <vsr_generic_op.h>

Static Public Member Functions

template<class A , class B >
static constexpr auto direction (const Multivector< A, B > &f) -> auto
 Direction of Direct Flat. More...
 
template<class A , class B >
static constexpr auto dir (const Multivector< A, B > &f) -> auto
 Direction of Direct Flat. More...
 
template<class A >
static constexpr A::space::Pnt location (const A &f, const typename A::space::Pnt &p, bool dual)
 Location of Flat A closest to Point p. More...
 
template<class A , class P >
static constexpr P loc (const A &f, const P &p, bool dual)
 Location of Flat A closest to Point p (shorthand) More...
 
template<class A >
static constexpr A::value_t wt (const A &f, bool bDual)
 Weight of Flat. More...
 
template<class A >
static constexpr auto dlp (const GAPnt< A > &pnt, const GADrv< A > &drv) -> auto
 Dual Plane from Point and Direction.
 
template<typename... T>
static constexpr NLin< sizeof...(T)+2 > line (T...v)
 Direct Line at origin with coordinate v ... More...
 
template<typename... T>
static constexpr NCir< sizeof...(T)+2 > dline (T...v)
 Direct hyperbolic d-Line at origin with coordinate v ... More...
 

Detailed Description

Generic ND Operations On Flat Types

e.g.

Line, DualLine, Plane, DualPlane, FlatPoint

Member Function Documentation

template<class A , class B >
static constexpr auto vsr::nga::Flat::dir ( const Multivector< A, B > &  f) -> auto
static

Direction of Direct Flat.

Parameters
DirectFlat [ Plane (Pln) or Line (Lin) ]
Returns
template<class A , class B >
static constexpr auto vsr::nga::Flat::direction ( const Multivector< A, B > &  f) -> auto
static

Direction of Direct Flat.

Parameters
DirectFlat [ Plane (Pln) or Line (Lin) ]
Returns
template<typename... T>
static constexpr NCir<sizeof...(T)+2> vsr::nga::Flat::dline ( T...  v)
inlinestatic

Direct hyperbolic d-Line at origin with coordinate v ...

template<typename... T>
static constexpr NLin<sizeof...(T)+2> vsr::nga::Flat::line ( T...  v)
inlinestatic

Direct Line at origin with coordinate v ...

template<class A , class P >
static constexpr P vsr::nga::Flat::loc ( const A &  f,
const P &  p,
bool  dual 
)
inlinestatic

Location of Flat A closest to Point p (shorthand)

Parameters
fDual or Direct Flat [ DualLine (Dll), Line (Lin), DualPlane (Dlp), or Plane (Pln) ]
pa Conformal Point
dualDuality Flag
Returns
template<class A >
static constexpr A::space::Pnt vsr::nga::Flat::location ( const A &  f,
const typename A::space::Pnt &  p,
bool  dual 
)
inlinestatic

Location of Flat A closest to Point p.

Parameters
fDual or Direct Flat [ DualLine (Dll), Line (Lin), DualPlane (Dlp), or Plane (Pln) ]
pa Conformal Point
dualDuality Flag
Returns
conformal point in same metric as f
template<class A >
static constexpr A::value_t vsr::nga::Flat::wt ( const A &  f,
bool  bDual 
)
inlinestatic

Weight of Flat.

Parameters
fDual or Direct Flat type e.g. vsr::cga::Line or vsr::cga::DualLine
bDualboolean flag for whether first argument is a dual

The documentation for this struct was generated from the following file: