diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-19 01:39:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-19 02:16:38 +0300 |
commit | bd59206b5c28674a757746a64aaf31abc107cedb (patch) | |
tree | 3abffb44cc3d873b969ea9dc1f01b459affff2a3 /source/blender/bmesh/intern/bmesh_polygon.c | |
parent | 5234e9ddd3ecefcf3a48d1f41e4dc18b89627f72 (diff) |
Cleanup: style, spelling
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |