This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

🚸 Add Region.dimensions, Region.size

+8
+8
src/geometry/region.rs
··· 366 366 self.end.1 - self.start.1 + 1 367 367 } 368 368 369 + pub fn dimensions(&self) -> (usize, usize) { 370 + (self.width(), self.height()) 371 + } 372 + 373 + pub fn size(&self, cell_size: usize) -> (usize, usize) { 374 + (self.width() * cell_size, self.height() * cell_size) 375 + } 376 + 369 377 // goes from -width to width (inclusive on both ends) 370 378 pub fn mirrored_width_range(&self) -> std::ops::RangeInclusive<i32> { 371 379 let w = self.width() as i32;