File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
gdnative-core/src/core_types/geom Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl Rect2 {
115
115
self . position . x < b. position . x + b. size . x
116
116
&& self . position . x + self . size . x > b. position . x
117
117
&& self . position . y < b. position . y + b. size . y
118
- && self . position . y + self . size . y > b. size . y
118
+ && self . position . y + self . size . y > b. position . y
119
119
}
120
120
121
121
/// Returns true if the rectangle overlaps with `b` (i.e. they have at least one point in
@@ -130,7 +130,7 @@ impl Rect2 {
130
130
self . position . x <= b. position . x + b. size . x
131
131
&& self . position . x + self . size . x >= b. position . x
132
132
&& self . position . y <= b. position . y + b. size . y
133
- && self . position . y + self . size . y >= b. size . y
133
+ && self . position . y + self . size . y >= b. position . y
134
134
}
135
135
136
136
/// Returns true if this rectangle (inclusively) encloses `b`.
You can’t perform that action at this time.
0 commit comments