versor  3.0
C++11 library for Geometric algebra
vsr_cga3D_xf.h
1 /*
2  * =====================================================================================
3  * @file
4  *
5  * Filename: vsr_cga3D_xf.h
6  *
7  * Description: Conversions to matrices;
8  * Todo: generalize matrix . . . add ability to convert to glm matrix, arbitrary
9  * matrix, etc.
10  *
11  * Version: 1.0
12  * Created: 03/05/2014 20:40:43
13  *
14  * Author: Pablo Colapinto (), gmail -> wolftype
15  * =====================================================================================
16  */
17 
18 
19 
20 #ifndef vsr_cga3D_xf_INC
21 #define vsr_cga3D_xf_INC
22 
23 #include "vsr_cga3D_op.h"
24 #include "gfx/gfx_matrix.h"
25 
26 namespace vsr {
27 
28 
29  namespace xf {
30 
31  using namespace vsr::cga;
32  using namespace gfx;
36  gfx::Mat4f mat( const Rot& r);
40  gfx::Mat4f mat( const Rot& r, const Vec& v, double s);
44  gfx::Mat4f mat( const Vec& v, VSR_PRECISION s);
48  gfx::Mat4f mat( const Rot& r, const Vec& v);
49 
50  /*
51  4x4 Transformation matrix from Vector
52  */
53  gfx::Mat4f mat(const Vec& v);
54  gfx::Mat4f mat(const Biv& b);
55 
56  /*
57  4x4 Transformation matrix from Circle
58  */
59  gfx::Mat4f mat(const Cir& s);
60 
61  /*
62  Transformation matrix from dual plane
63  */
64  gfx::Mat4f mat(const Dlp& dlp);
65 
66  /*
67  4x4 Transformation matrix from dual sphere with known size
68  */
69  gfx::Mat4f mat(const Dls& v, VSR_PRECISION s);
70 
71  /*
72  4x4 Transformation matrix from dual sphere
73  */
74  gfx::Mat4f mat(const Dls& v );
75 
76  /*
77  4x4 Transformation matrix from dual line
78  */
79  gfx::Mat4f mat(const Dll& v );
80 
81  /*
82  4x4 Transformation matrix from direct line
83  */
84 
85  gfx::Mat4f mat(const Lin& v );
86 
87 
88  } // XF
89 } //vsr::
90 
91 
92 #endif /* ----- #ifndef vsr_cga3D_xf_INC ----- */
Common Operations Specific to CGA3D.
3D Conformal Geometric Algebra Namespace
Definition: vsr_cga3D_conic.h:28
Definition: vsr_cga2D_draw.h:13
Generic Geometric Number Types (templated on an algebra and a basis )
Definition: vsr_algebra.h:69
the versor library namespace
Definition: vsr_algebra.h:29