Commit fa466a25 authored by Cyril Lenain's avatar Cyril Lenain 🏄🏽
Browse files

including <cmath>

parent 9b1ab916
Pipeline #121136 passed with stages
in 6 minutes and 50 seconds
......@@ -21,6 +21,8 @@
*****************************************************************************/
#include "SamuraiFieldMap.h"
#include <cmath>
#include <fstream>
#include <iostream>
using namespace std;
......@@ -90,7 +92,7 @@ std::vector<float> SamuraiFieldMap::InterpolateB(std::vector<float>& pos){
unsigned int size = it.size();
for(unsigned int i = 0 ; i < size; i++){
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[2]-it[i]->first[2])*(pos[2]-it[i]->first[2]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment