diff options
Diffstat (limited to 'source/blender/blenlib/BLI_mpq2.hh')
-rw-r--r-- | source/blender/blenlib/BLI_mpq2.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_mpq2.hh b/source/blender/blenlib/BLI_mpq2.hh index 40e227019ce..18bc8821d9c 100644 --- a/source/blender/blenlib/BLI_mpq2.hh +++ b/source/blender/blenlib/BLI_mpq2.hh @@ -156,7 +156,8 @@ struct mpq2 { static mpq_class distance_squared(const mpq2 &a, const mpq2 &b) { - return dot(a, b); + mpq2 diff = a - b; + return dot(diff, diff); } struct isect_result { |