This commit is contained in:
Henry Schimke
2023-03-21 10:16:46 -05:00
parent 2b3ed37924
commit 890fb4901f
4 changed files with 9 additions and 7 deletions

View File

@@ -265,6 +265,11 @@ impl BitMatrix {
(self.get_offset(y, x)) >= self.bits.len()
}
/// Confusingly returns true if the requested element is out of bounds
pub fn check_point_in_bounds(&self, point: Point) -> bool {
self.check_in_bounds(point.x as u32, point.y as u32)
}
/**
* <p>Sets the given bit to true.</p>
*