diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-10-23 21:44:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 21:44:05 +0200 |
| commit | e96319c7f392c3d3491ac5e81237e8f651baae0a (patch) | |
| tree | 89204e8e724dfeb8a4d9b514459066c5897e0bee /core | |
| parent | 2408e214a71522b3100ea28f40bd3b15717298b6 (diff) | |
| parent | 643874f8caff3a284a70bf4c114cca9f165deea2 (diff) | |
Merge pull request #32670 from aaronfranke/mono-plane
[Mono] Change Plane intersect methods to return nullable Vector3
Diffstat (limited to 'core')
| -rw-r--r-- | core/math/plane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp index b01853c4ac..b6bcac4b27 100644 --- a/core/math/plane.cpp +++ b/core/math/plane.cpp @@ -91,7 +91,7 @@ bool Plane::intersect_3(const Plane &p_plane1, const Plane &p_plane2, Vector3 *r real_t denom = vec3_cross(normal0, normal1).dot(normal2); - if (ABS(denom) <= CMP_EPSILON) + if (Math::is_zero_approx(denom)) return false; if (r_result) { |