Commit 07bf894f authored by Monty's avatar Monty Committed by Monty Montgomery

More ongoing math flow work on LRF

parent e7ac4a56
This diff is collapsed.
......@@ -358,6 +358,14 @@ impl<'a, T: Pixel> PlaneSlice<'a, T> {
}
}
pub fn reslice(&self, xo: isize, yo: isize) -> PlaneSlice<'a, T> {
PlaneSlice {
plane: self.plane,
x: self.x + xo,
y: self.y + yo
}
}
/// A slice starting i pixels above the current one.
pub fn go_up(&self, i: usize) -> PlaneSlice<'a, T> {
PlaneSlice { plane: self.plane, x: self.x, y: self.y - i as isize }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment