pub struct Aoi {
pub upper_left: Point,
pub lower_right: Point,
}Expand description
A rectangular area of interest on the satellite torus grid.
Fields§
§upper_left: PointUpper-left corner of the bounding box (inclusive).
lower_right: PointLower-right corner of the bounding box (inclusive).
Implementations§
Source§impl Aoi
impl Aoi
Sourcepub fn new(upper_left: Point, lower_right: Point) -> Self
pub fn new(upper_left: Point, lower_right: Point) -> Self
Creates a new AOI from upper-left and lower-right corners.
Sourcepub fn center(&self, torus: &Torus) -> Point
pub fn center(&self, torus: &Torus) -> Point
Returns the center point of this AOI on the torus.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Aoi
impl RefUnwindSafe for Aoi
impl Send for Aoi
impl Sync for Aoi
impl Unpin for Aoi
impl UnsafeUnpin for Aoi
impl UnwindSafe for Aoi
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