Skip to content
Snippets Groups Projects
Commit 21ead110 authored by Karsten Rink's avatar Karsten Rink
Browse files

exchanged pi-constant for radian-constant

parent 61fb77e5
No related branches found
No related tags found
No related merge requests found
...@@ -129,8 +129,7 @@ void MeshSurfaceExtraction::get2DSurfaceElements(const std::vector<MeshLib::Elem ...@@ -129,8 +129,7 @@ void MeshSurfaceExtraction::get2DSurfaceElements(const std::vector<MeshLib::Elem
if (MathLib::scalarProduct(dir, dir) != 0) if (MathLib::scalarProduct(dir, dir) != 0)
complete_surface = false; complete_surface = false;
double const pi (boost::math::constants::pi<double>()); double const cos_theta (std::cos(angle * boost::math::constants::radian<double>()));
double const cos_theta (std::cos(angle * pi / 180.0));
MathLib::Vector3 const norm_dir (dir.getNormalizedVector()); MathLib::Vector3 const norm_dir (dir.getNormalizedVector());
for (auto elem = all_elements.begin(); elem != all_elements.end(); ++elem) for (auto elem = all_elements.begin(); elem != all_elements.end(); ++elem)
......
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