Skip to content
Snippets Groups Projects
Commit fa466a25 authored by Cyril Lenain's avatar Cyril Lenain :surfer_tone3:
Browse files

including <cmath>

parent 9b1ab916
No related branches found
No related tags found
No related merge requests found
Pipeline #121136 passed
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
*****************************************************************************/ *****************************************************************************/
#include "SamuraiFieldMap.h" #include "SamuraiFieldMap.h"
#include <cmath>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
using namespace std; using namespace std;
...@@ -90,7 +92,7 @@ std::vector<float> SamuraiFieldMap::InterpolateB(std::vector<float>& pos){ ...@@ -90,7 +92,7 @@ std::vector<float> SamuraiFieldMap::InterpolateB(std::vector<float>& pos){
unsigned int size = it.size(); unsigned int size = it.size();
for(unsigned int i = 0 ; i < size; i++){ for(unsigned int i = 0 ; i < size; i++){
if(it[i]!=end){ if(it[i]!=end){
double d = 1e-6+sqrt( (pos[0]-it[i]->first[0])*(pos[0]-it[i]->first[0])+ double d = 1e-6+ sqrt( (pos[0]-it[i]->first[0])*(pos[0]-it[i]->first[0])+
(pos[1]-it[i]->first[1])*(pos[1]-it[i]->first[1])+ (pos[1]-it[i]->first[1])*(pos[1]-it[i]->first[1])+
(pos[2]-it[i]->first[2])*(pos[2]-it[i]->first[2])); (pos[2]-it[i]->first[2])*(pos[2]-it[i]->first[2]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment