(self, point: Vector2)
| 20 | } |
| 21 | |
| 22 | pub fn contains(self, point: Vector2) -> bool { |
| 23 | let min = self.min(); |
| 24 | let max = self.max(); |
| 25 | point.x >= min.x && point.x <= max.x && point.y >= min.y && point.y <= max.y |
| 26 | } |
| 27 | |
| 28 | pub fn contains_rounded(self, point: Vector2, corner_radius: f32) -> bool { |
| 29 | if !self.contains(point) { |