pub struct Grid {
pub size: u32,
pub period: [f32; 2],
}Expand description
Pixel (x, y) of a size x size grid is evaluated at U = (x + 0.5) / size * period[0], V likewise with y and
period[1], in f32. The grid is the screen: an input lane taking U steps by period[0] / size along x (its d/dx) and
not along y; V likewise along y; other lanes are constant.
Fields§
§size: u32Pixels along each side of the square grid.
period: [f32; 2]The span of U and V across the grid: U runs to period[0] and V to period[1].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more