versor  3.0
C++11 library for Geometric algebra
vsr_csg.h
1 /*
2  * =====================================================================================
3  *
4  * Filename: vsr_csg.h
5  *
6  * Description: some tools for constructive solid geometry (experimental)
7  *
8  * Version: 1.0
9  * Created: 06/08/2015 18:15:26
10  * Revision: none
11  * Compiler: gcc
12  *
13  * Author: Pablo Colapinto (), gmail->wolftype
14  * Organization: wolftype
15  *
16  * =====================================================================================
17  */
18 
19 
20 #include "vsr_cga3D_frame.h"
21 #include "space/vsr_cga3D_funcs.h"
22 
23 namespace vsr { namespace cga {
24 
25 
26  vector<Point> points( const Circle& k, int num, float theta=0, float phi=TWOPI){
27 
28  vector<Point> pnt;
29 
30  for (int i =0;i<num;++i){
31  VSR_PRECISION t = theta + phi * (VSR_PRECISION) i/num;
32  pnt.push_back( point(k,t) );
33  }
34 
35  return pnt;
36  }
37 
38 
39 } } //vsr::cga::
Cir Circle
Direct Circle 3-blade \(\kappa=p_a \wedge p_b \wedge p_c\)
Definition: vsr_cga3D_types.h:130
the versor library namespace
Definition: vsr_algebra.h:29
3D CGA Orthonormal Frame