OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
debug.hpp
1 /*
2  * debug.hpp
3  *
4  * Created on: Oct 7, 2016
5  * Author: i-bird
6  */
7 
8 #ifndef SRC_DEBUG_HPP_
9 #define SRC_DEBUG_HPP_
10 
11 #include "Vector/map_vector.hpp"
12 #include "Space/Shape/Point.hpp"
13 
14 Point<3,float> getPosPoint3f(openfpm::vector<Point<3,float>> & pos, size_t i)
15 {
16  return Point<3,float>(pos.get(i));
17 }
18 
19 Point<3,double> getPosPoint3d(openfpm::vector<Point<3,double>> & pos, size_t i)
20 {
21  return Point<3,double>(pos.get(i));
22 }
23 
24 Point<2,float> getPosPoint2f(openfpm::vector<Point<2,float>> & pos, size_t i)
25 {
26  return Point<2,float>(pos.get(i));
27 }
28 
29 Point<2,double> getPosPoint2d(openfpm::vector<Point<2,double>> & pos, size_t i)
30 {
31  return Point<2,double>(pos.get(i));
32 }
33 
34 
35 
36 #endif /* SRC_DEBUG_HPP_ */
This class implement the point shape in an N-dimensional space.
Definition: Point.hpp:22
Implementation of 1-D std::vector like structure.
Definition: map_vector.hpp:61