diff options
| author | Rémi Verschelde | 2017-02-14 16:04:36 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-14 16:04:36 +0100 |
| commit | 78336990f4f6c36db2000d6097826bbe573eb016 (patch) | |
| tree | 8bb33b592e3d3982ca5faf5e041c37644d5b525d /core/math/plane.cpp | |
| parent | 81edda18f39efc4f783bc6fa2b381c01cfc0ef2d (diff) | |
| parent | adcc211feb7827127b2548c791f2de0b6efda3d3 (diff) | |
| download | godot-78336990f4f6c36db2000d6097826bbe573eb016.tar.gz godot-78336990f4f6c36db2000d6097826bbe573eb016.tar.zst godot-78336990f4f6c36db2000d6097826bbe573eb016.zip | |
Diffstat (limited to 'core/math/plane.cpp')
| -rw-r--r-- | core/math/plane.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp index 2a9793204..0d446059c 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; +} |
