You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: godot-core/src/builtin/rect2.rs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,9 @@ impl Rect2 {
177
177
self.size.x > 0.0 && self.size.y > 0.0
178
178
}
179
179
180
-
/// Returns `true` if the Rect2 contains a point. By convention, the right and bottom edges of the Rect2 are considered exclusive, so points on these edges are not included.
180
+
/// Returns `true` if the Rect2 contains a point (excluding right/bottom edges).
181
+
///
182
+
/// By convention, the right and bottom edges of the Rect2 are considered exclusive, so points on these edges are not included.
181
183
///
182
184
/// Note: This method is not reliable for Rect2 with a negative size. Use `abs` to get a positive sized equivalent rectangle to check for contained points.
0 commit comments