diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-17 00:06:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-17 00:06:59 +0300 |
commit | ecdbe3cc6351bd5f59b0052289419a0337047574 (patch) | |
tree | 63b750ba53ce35995e219c1e3193c14e583ce461 /source/blender/blenlib | |
parent | 2689247f980ad4076cec70096969e092d401a133 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_geom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index ad48711b8eb..f74e3114fb1 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -771,7 +771,9 @@ int isect_seg_seg_v2_point(const float v1[2], const float v2[2], const float v3[ bool isect_seg_seg_v2(const float v1[2], const float v2[2], const float v3[2], const float v4[2]) { -#define CCW(A, B, C) ((C[1] - A[1]) * (B[0] - A[0]) > (B[1]-A[1]) * (C[0]-A[0])) +#define CCW(A, B, C) \ + ((C[1] - A[1]) * (B[0] - A[0]) > \ + (B[1] - A[1]) * (C[0] - A[0])) return CCW(v1, v3, v4) != CCW(v2, v3, v4) && CCW(v1, v2, v3) != CCW(v1, v2, v4); |