Struct versatiles::shared::TileBBox
source · pub struct TileBBox { /* private fields */ }
Implementations§
source§impl TileBBox
impl TileBBox
pub fn new( level: u8, x_min: u32, y_min: u32, x_max: u32, y_max: u32 ) -> TileBBox
pub fn new_full(level: u8) -> TileBBox
pub fn new_empty(level: u8) -> TileBBox
pub fn from_geo(level: u8, geo_bbox: &[f32; 4]) -> TileBBox
pub fn set_empty(&mut self)
pub fn is_empty(&self) -> bool
pub fn count_tiles(&self) -> u64
pub fn get_level(&self) -> u8
pub fn get_max(&self) -> u32
pub fn get_x_min(&self) -> u32
pub fn get_y_min(&self) -> u32
pub fn get_x_max(&self) -> u32
pub fn get_y_max(&self) -> u32
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(self, x: u32, y: u32) -> TileBBox
pub fn scale_down(self, scale: u32) -> TileBBox
pub fn contains(&self, coord: &TileCoord2) -> bool
pub fn get_tile_index(&self, coord: &TileCoord2) -> usize
pub fn get_coord_by_index(&self, index: usize) -> TileCoord2
pub fn as_geo_bbox(&self, z: u8) -> [f32; 4]
pub fn swap_xy(&mut self)
pub fn flip_y(&mut self)
Trait Implementations§
source§impl PartialEq<TileBBox> for TileBBox
impl PartialEq<TileBBox> 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.