Skip to main content

projective_grid/
grid_index.rs

1use serde::{Deserialize, Serialize};
2
3/// Integer grid coordinates `(i, j)` identifying a corner intersection
4/// in a 2D grid.
5#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Serialize, Deserialize)]
6pub struct GridIndex {
7    pub i: i32,
8    pub j: i32,
9}