pub struct FlatTileView {
pub target_world: WorldCoord,
pub distance: f64,
pub pitch: f64,
pub yaw: f64,
pub fov_y: f64,
pub viewport_width: u32,
pub viewport_height: u32,
}Expand description
Camera parameters needed to select flat raster tiles for a pitched perspective map view.
The selection algorithm starts from the conservative axis-aligned
visible_tiles result computed from the world-space viewport bounds,
then filters that set against the sampled ground footprint of the actual
screen frustum. This keeps coverage correct while avoiding severe tile
over-selection at steep pitch angles where the visible ground forms a thin,
rotated trapezoid rather than a broad rectangle.
Fields§
§target_world: WorldCoordCamera target in Web Mercator world coordinates (meters).
distance: f64Camera orbit distance in meters.
pitch: f64Camera pitch in radians.
yaw: f64Camera yaw in radians.
fov_y: f64Vertical field of view in radians.
viewport_width: u32Viewport width in logical pixels.
viewport_height: u32Viewport height in logical pixels.
Implementations§
Trait Implementations§
Source§impl Clone for FlatTileView
impl Clone for FlatTileView
Source§fn clone(&self) -> FlatTileView
fn clone(&self) -> FlatTileView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlatTileView
impl Debug for FlatTileView
Source§impl PartialEq for FlatTileView
impl PartialEq for FlatTileView
impl Copy for FlatTileView
impl StructuralPartialEq for FlatTileView
Auto Trait Implementations§
impl Freeze for FlatTileView
impl RefUnwindSafe for FlatTileView
impl Send for FlatTileView
impl Sync for FlatTileView
impl Unpin for FlatTileView
impl UnsafeUnpin for FlatTileView
impl UnwindSafe for FlatTileView
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