summaryrefslogtreecommitdiff
path: root/core/math/plane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/plane.cpp')
-rw-r--r--core/math/plane.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp
index 2a97932049..0d446059c4 100644
--- a/core/math/plane.cpp
+++ b/core/math/plane.cpp
@@ -164,3 +164,8 @@ Plane::operator String() const {
return normal.operator String() + ", " + rtos(d);
}
+
+bool Plane::nan_equals(const Plane& p_plane) const {
+
+ return normal.nan_equals(p_plane.normal) && d == p_plane.d;
+}