diff options
author | Jacques Lucke <jacques@blender.org> | 2021-01-11 20:39:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-01-11 20:39:12 +0300 |
commit | b3d34a6690a68e6922bc0f6d7a66482a12625b78 (patch) | |
tree | daba9c19d2b09bf2d7b17cef09514c7f5530d3ca /source/blender/blenlib/BLI_double2.hh | |
parent | 3c112c5e46828e093c81a74a9b258aa354cd9290 (diff) |
use new style for isect_seg_seg and cross_polytemp-experimental-cpp-math-refactor
Diffstat (limited to 'source/blender/blenlib/BLI_double2.hh')
-rw-r--r-- | source/blender/blenlib/BLI_double2.hh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/blenlib/BLI_double2.hh b/source/blender/blenlib/BLI_double2.hh index 236c429861a..cd8f4385504 100644 --- a/source/blender/blenlib/BLI_double2.hh +++ b/source/blender/blenlib/BLI_double2.hh @@ -50,21 +50,6 @@ struct double2 { { return &x; } - - struct isect_result { - enum { - LINE_LINE_COLINEAR = -1, - LINE_LINE_NONE = 0, - LINE_LINE_EXACT = 1, - LINE_LINE_CROSS = 2, - } kind; - double lambda; - }; - - static isect_result isect_seg_seg(const double2 &v1, - const double2 &v2, - const double2 &v3, - const double2 &v4); }; inline double length(const double2 &a) @@ -140,6 +125,21 @@ inline double distance_squared(const double2 &a, const double2 &b) return dot(diff, diff); } +struct isect_result_double2 { + enum { + LINE_LINE_COLINEAR = -1, + LINE_LINE_NONE = 0, + LINE_LINE_EXACT = 1, + LINE_LINE_CROSS = 2, + } kind; + double lambda; +}; + +isect_result_double2 isect_seg_seg(const double2 &v1, + const double2 &v2, + const double2 &v3, + const double2 &v4); + } // namespace blender::math namespace blender { |