Fixed a bug where sqrt wasn't found

sqrt is a math library function, not in standard lib
This commit is contained in:
2020-01-27 19:07:16 +01:00
parent e4f20dbd93
commit 805c67edc5

View File

@@ -110,7 +110,7 @@ double IntelliToolGradient::dotProduct(double Vector1[2], double Vector2[2]){
}
double IntelliToolGradient::lenghtVector(double Vector[2]){
return static_cast<double>((std::sqrt(Vector[0] * Vector[0] + Vector[1] * Vector[1])));
return static_cast<double>((sqrt(Vector[0] * Vector[0] + Vector[1] * Vector[1])));
}
void IntelliToolGradient::computeGradientLayer(){