aboutsummaryrefslogtreecommitdiff
path: root/core/math/rect3.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-18 15:11:16 -0300
committerJuan Linietsky2017-08-18 15:12:48 -0300
commit72be8876ea40984532d283c598dfcc267d30c829 (patch)
tree50ec987395edb1976e2e0437861d18e7ee7c7ba2 /core/math/rect3.h
parent3b553377c77c59885a3561f71327e7ca5f0ec9e4 (diff)
downloadgodot-72be8876ea40984532d283c598dfcc267d30c829.tar.gz
godot-72be8876ea40984532d283c598dfcc267d30c829.tar.zst
godot-72be8876ea40984532d283c598dfcc267d30c829.zip
Diffstat (limited to 'core/math/rect3.h')
-rw-r--r--core/math/rect3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/rect3.h b/core/math/rect3.h
index 7c971f5ac..4890a19d9 100644
--- a/core/math/rect3.h
+++ b/core/math/rect3.h
@@ -47,12 +47,12 @@ public:
real_t get_area() const; /// get area
_FORCE_INLINE_ bool has_no_area() const {
- return (size.x <= CMP_EPSILON || size.y <= CMP_EPSILON || size.z <= CMP_EPSILON);
+ return (size.x <= 0 || size.y <= 0 || size.z <= 0);
}
_FORCE_INLINE_ bool has_no_surface() const {
- return (size.x <= CMP_EPSILON && size.y <= CMP_EPSILON && size.z <= CMP_EPSILON);
+ return (size.x <= 0 && size.y <= 0 && size.z <= 0);
}
const Vector3 &get_position() const { return position; }