summaryrefslogtreecommitdiffstats
path: root/core/math/rect2.h
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-02-17 23:24:59 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-04 18:17:10 +0100
commita497a5cb3e31f1d863ad70d80bc706474a29d8cc (patch)
treef0806737910e71a5957e76d29171fd1412285253 /core/math/rect2.h
parent01dc5c5b58e93cb893c9c427419eb7838e73ec7d (diff)
downloadredot-engine-a497a5cb3e31f1d863ad70d80bc706474a29d8cc.tar.gz
[Core] Codestyle improvements to math types
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r--core/math/rect2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h
index 5f403458fd..0f874d4857 100644
--- a/core/math/rect2.h
+++ b/core/math/rect2.h
@@ -51,7 +51,7 @@ struct _NO_DISCARD_ Rect2 {
_FORCE_INLINE_ Vector2 get_center() const { return position + (size * 0.5f); }
- inline bool intersects(const Rect2 &p_rect, const bool p_include_borders = false) const {
+ inline bool intersects(const Rect2 &p_rect, bool p_include_borders = false) const {
#ifdef MATH_CHECKS
if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) {
ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size.");