pub struct CoveringCamera {
pub camera_x: f64,
pub camera_y: f64,
pub camera_to_center_z: f64,
pub center_x: f64,
pub center_y: f64,
pub pitch_rad: f64,
pub fov_deg: f64,
pub zoom: f64,
pub display_tile_size: u32,
}Expand description
Camera state needed by the covering-tiles traversal.
All distances / positions are in Mercator normalised coordinates
(range 0..1), matching the MapLibre convention where worldSize = 1.
The caller is responsible for converting meter-based engine coordinates
before calling visible_tiles_covering.
Fields§
§camera_x: f64Camera position X in Mercator normalised coords.
camera_y: f64Camera position Y in Mercator normalised coords.
camera_to_center_z: f64Absolute vertical distance from camera to map center, in Mercator normalised coords.
center_x: f64Center point X in Mercator normalised coords.
center_y: f64Center point Y in Mercator normalised coords.
pitch_rad: f64Camera pitch in radians.
fov_deg: f64Vertical field-of-view in degrees (matching MapLibre convention).
zoom: f64The logical zoom level requested at the center of the viewport (before tile-size adjustment).
display_tile_size: u32Display tile size in screen pixels (typically 256).
Trait Implementations§
Source§impl Clone for CoveringCamera
impl Clone for CoveringCamera
Source§fn clone(&self) -> CoveringCamera
fn clone(&self) -> CoveringCamera
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more