From bd59206b5c28674a757746a64aaf31abc107cedb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 19 Jul 2016 08:39:38 +1000 Subject: Cleanup: style, spelling --- source/blender/bmesh/intern/bmesh_polygon.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/bmesh/intern/bmesh_polygon.c') diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c index 13b6a3c13c5..08e97046f68 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.c +++ b/source/blender/bmesh/intern/bmesh_polygon.c @@ -57,10 +57,9 @@ static bool testedgesidef(const float v1[2], const float v2[2], const float v3[2]) { /* is v3 to the right of v1 - v2 ? With exception: v3 == v1 || v3 == v2 */ - double inp; - - //inp = (v2[cox] - v1[cox]) * (v1[coy] - v3[coy]) + (v1[coy] - v2[coy]) * (v1[cox] - v3[cox]); - inp = (v2[0] - v1[0]) * (v1[1] - v3[1]) + (v1[1] - v2[1]) * (v1[0] - v3[0]); + const float inp = + ((v2[0] - v1[0]) * (v1[1] - v3[1])) + + ((v1[1] - v2[1]) * (v1[0] - v3[0])); if (inp < 0.0) { return false; -- cgit v1.2.3