debug.hpp 701 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
/*
 * debug.hpp
 *
 *  Created on: Oct 7, 2016
 *      Author: i-bird
 */

#ifndef SRC_DEBUG_HPP_
#define SRC_DEBUG_HPP_

#include "Vector/map_vector.hpp"
#include "Space/Shape/Point.hpp"

Point<3,float> getPosPoint3f(openfpm::vector<Point<3,float>> & pos, size_t i)
{
	return Point<3,float>(pos.get(i));
}

Point<3,double> getPosPoint3d(openfpm::vector<Point<3,double>> & pos, size_t i)
{
	return Point<3,double>(pos.get(i));
}

Point<2,float> getPosPoint2f(openfpm::vector<Point<2,float>> & pos, size_t i)
{
	return Point<2,float>(pos.get(i));
}

Point<2,double> getPosPoint2d(openfpm::vector<Point<2,double>> & pos, size_t i)
{
	return Point<2,double>(pos.get(i));
}



#endif /* SRC_DEBUG_HPP_ */