diff options
Diffstat (limited to 'source/blender/freestyle/intern/geometry/GeomUtils.h')
-rw-r--r-- | source/blender/freestyle/intern/geometry/GeomUtils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/geometry/GeomUtils.h b/source/blender/freestyle/intern/geometry/GeomUtils.h index c469f10cc49..635808aab4b 100644 --- a/source/blender/freestyle/intern/geometry/GeomUtils.h +++ b/source/blender/freestyle/intern/geometry/GeomUtils.h @@ -50,12 +50,14 @@ template<class T> real distPointSegment(const T &P, const T &A, const T &B) BP = P - B; real c1(AB * AP); - if (c1 <= 0) + if (c1 <= 0) { return AP.norm(); + } real c2(AB * AB); - if (c2 <= c1) + if (c2 <= c1) { return BP.norm(); + } real b = c1 / c2; T Pb, PPb; |