IndexArea: start at (0,0) for empty range
This commit is contained in:
parent
8239b1e8d5
commit
61c2d55441
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ impl IndexArea<Point2<i16>> {
|
||||||
|
|
||||||
pub fn range(&self) -> RangeInclusive<Point2<i16>> {
|
pub fn range(&self) -> RangeInclusive<Point2<i16>> {
|
||||||
match self {
|
match self {
|
||||||
IndexArea::Empty => Point2::new(1, 1)..=Point2::new(0, 0),
|
IndexArea::Empty => Point2::new(0, 0)..=Point2::new(-1, -1),
|
||||||
IndexArea::Full => panic!("range from full grid area"),
|
IndexArea::Full => panic!("range from full grid area"),
|
||||||
IndexArea::Set(v) => {
|
IndexArea::Set(v) => {
|
||||||
Point2::new(
|
Point2::new(
|
||||||
|
|
Loading…
Reference in a new issue