pub struct View<'a> { /* private fields */ }Expand description
Borrowed camera/projection view handle.
Implementations§
Source§impl<'a> View<'a>
impl<'a> View<'a>
pub fn info(&self) -> ViewInfo
pub fn world_from_lat_lng(&self, lat_lng: LatLng) -> Result<(f64, f64)>
pub fn lat_lng_near_center(&self, lat_lng: LatLng) -> Result<LatLng>
pub fn ground_meters_per_world_unit_at(&self, lat_lng: LatLng) -> f64
pub fn world_copies(&self) -> Result<Vec<i16>>
pub fn project_tile_point( &self, tile_id: TileId, x: f64, y: f64, elevation_m: f64, ) -> Result<ProjectedPoint>
pub fn map_aligned_scale_at(&self, tile_id: TileId, x: f64, y: f64) -> f64
pub fn globe_extrude_scale(&self, tile_id: TileId) -> f32
pub fn tile_unit_translation( &self, tile_id: TileId, translate: Vec2, anchor: Alignment, ) -> Result<Vec2>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for View<'a>
impl<'a> !Send for View<'a>
impl<'a> !Sync for View<'a>
impl<'a> !UnwindSafe for View<'a>
impl<'a> Forget for View<'a>
impl<'a> Freeze for View<'a>where
&'a dyn ViewBackend: Freeze,
impl<'a> Move for View<'a>
impl<'a> Unpin for View<'a>where
&'a dyn ViewBackend: Unpin,
impl<'a> UnsafeUnpin for View<'a>where
&'a dyn ViewBackend: UnsafeUnpin,
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