19 #include "vsr_products.h"
21 #include "vsr_ega2D_types.h"
22 #include "gfx/gfx_glyphs.h"
26 using namespace ega2D;
29 void Draw(
const A& s,
float r = 1,
float g = 1,
float b = 1,
float a = 1){
37 Rot AA(
const Vec& s){
39 VT deg = Gen::iphi(r) * ( -180 / PI );
40 return Rot(deg, Gen::pl( r )[0]);
44 void Immediate (
const Vec& s){
47 gfx::Glyph::Line2D(s);
49 gfx::GL::translate( s[0], s[1], 0 );
50 gfx::GL::rotate(t[0], 0, 0, t[1] );
core namespaced operations that are metric-agnostic
static Rot ratio(const Vec &v, const Vec &v2)
vsr::cga::Rotor that takes one vec to another
the versor library namespace
Definition: vsr_algebra.h:29
NTri< 5 > Tri
Trivector
Definition: vsr_cga3D_types.h:65
NRot< 5 > Rot
Rotor
Definition: vsr_cga3D_types.h:64