Skip to content
Snippets Groups Projects
Commit 7aafdc62 authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] clang format.

parent c097b2ed
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,9 @@ bool Triangle::containsPoint2D (Point const& pnt) const ...@@ -66,7 +66,9 @@ bool Triangle::containsPoint2D (Point const& pnt) const
const double upper (1+delta); const double upper (1+delta);
// check if u0 and u1 fulfills the condition (with some 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 true;
} }
return false; return false;
......
...@@ -35,7 +35,10 @@ public: ...@@ -35,7 +35,10 @@ public:
* construction of object, initialization of reference to point vector, * construction of object, initialization of reference to point vector,
* saves the three indices describing a triangle * 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 * saves three indices describing a triangle
...@@ -64,7 +67,9 @@ public: ...@@ -64,7 +67,9 @@ public:
* @param eps Checks the 'epsilon'-neighbourhood * @param eps Checks the 'epsilon'-neighbourhood
* @return true, if point is in triangle, else false * @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 * projects the triangle points to the x-y-plane and
......
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