From 7aafdc622ce438b8259f47f4795ea96a3bfea231 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 1 Jun 2016 14:27:54 +0200 Subject: [PATCH] [GL] clang format. --- GeoLib/Triangle.cpp | 4 +++- GeoLib/Triangle.h | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/GeoLib/Triangle.cpp b/GeoLib/Triangle.cpp index 29927e51af6..bb064447616 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 dc65fff94c1..74e99802d5c 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 -- GitLab