Struct versatiles_lib::shared::tile_bbox::TileBBox
source · pub struct TileBBox {
pub level: u8,
pub x_min: u32,
pub y_min: u32,
pub x_max: u32,
pub y_max: u32,
pub max: u32,
}Fields§
§level: u8§x_min: u32§y_min: u32§x_max: u32§y_max: u32§max: u32Implementations§
source§impl TileBBox
impl TileBBox
pub fn new( level: u8, x_min: u32, y_min: u32, x_max: u32, y_max: u32 ) -> Result<TileBBox>
pub fn new_full(level: u8) -> Result<TileBBox>
pub fn new_empty(level: u8) -> Result<TileBBox>
pub fn from_geo(level: u8, geo_bbox: &[f64; 4]) -> Result<TileBBox>
pub fn set_empty(&mut self)
pub fn is_empty(&self) -> bool
pub fn count_tiles(&self) -> u64
pub fn include_tile(&mut self, x: u32, y: u32)
pub fn union_bbox(&mut self, bbox: &TileBBox)
pub fn intersect_bbox(&mut self, bbox: &TileBBox)
pub fn add_border(&mut self, x_min: u32, y_min: u32, x_max: u32, y_max: u32)
pub fn set_bbox(&mut self, bbox: &TileBBox)
pub fn iter_coords(&self) -> impl Iterator<Item = TileCoord3> + '_
pub fn iter_bbox_row_slices( &self, max_count: usize ) -> impl Iterator<Item = TileBBox> + '_
pub fn shift_by(&mut self, x: u32, y: u32)
pub fn substract_coord2(&mut self, c: &TileCoord2)
pub fn substract_u32(&mut self, x: u32, y: u32)
pub fn scale_down(&mut self, scale: u32)
pub fn contains(&self, coord: &TileCoord2) -> bool
pub fn contains3(&self, coord: &TileCoord3) -> bool
pub fn get_tile_index(&self, coord: &TileCoord2) -> usize
pub fn get_coord2_by_index(&self, index: u32) -> Result<TileCoord2>
pub fn get_coord3_by_index(&self, index: u32) -> Result<TileCoord3>
pub fn as_geo_bbox(&self, z: u8) -> [f64; 4]
Trait Implementations§
source§impl PartialEq for TileBBox
impl PartialEq for TileBBox
impl Copy for TileBBox
impl Eq for TileBBox
impl StructuralEq for TileBBox
impl StructuralPartialEq for TileBBox
Auto Trait Implementations§
impl RefUnwindSafe for TileBBox
impl Send for TileBBox
impl Sync for TileBBox
impl Unpin for TileBBox
impl UnwindSafe for TileBBox
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