diff --git a/GeoLib/Triangle.cpp b/GeoLib/Triangle.cpp index 29927e51af66a978590306f27d78a4ca84f2c334..bb0644476166d2108826c613f4f4c5115fa23d98 100644 --- a/GeoLib/Triangle.cpp +++ b/GeoLib/Triangle.cpp @@ -66,7 +66,9 @@ bool Triangle::containsPoint2D (Point const& pnt) const const double upper (1+delta); // check if u0 and u1 fulfills the condition (with some delta) - if (-delta <= y[0] && y[0] <= upper && -delta <= y[1] && y[1] <= upper && y[0] + y[1] <= upper) { + if (-delta <= y[0] && y[0] <= upper && -delta <= y[1] && y[1] <= upper && + y[0] + y[1] <= upper) + { return true; } return false; diff --git a/GeoLib/Triangle.h b/GeoLib/Triangle.h index dc65fff94c137bb7119780be9ad08dcc9012a49a..74e99802d5c59882a0482b77b1ca1f14ec37b758 100644 --- a/GeoLib/Triangle.h +++ b/GeoLib/Triangle.h @@ -35,7 +35,10 @@ public: * construction of object, initialization of reference to point vector, * saves the three indices describing a triangle */ - Triangle (std::vector<Point *> const &pnt_vec, std::size_t pnt_a, std::size_t pnt_b, std::size_t pnt_c); + Triangle(std::vector<Point*> const& pnt_vec, + std::size_t pnt_a, + std::size_t pnt_b, + std::size_t pnt_c); /** * saves three indices describing a triangle @@ -64,7 +67,9 @@ public: * @param eps Checks the 'epsilon'-neighbourhood * @return true, if point is in triangle, else false */ - bool containsPoint(MathLib::Point3d const& q, double eps = std::numeric_limits<float>::epsilon()) const; + bool containsPoint( + MathLib::Point3d const& q, + double eps = std::numeric_limits<float>::epsilon()) const; /** * projects the triangle points to the x-y-plane and