pub struct ViewInfo {
pub width: u32,
pub height: u32,
pub zoom: f64,
pub integer_zoom: u8,
pub angle_rad: f64,
pub pitch_rad: f64,
pub camera_to_center_distance: f64,
pub is_globe: bool,
pub world_wraps: bool,
}Expand description
Snapshot of camera view parameters (sizes in logical pixels, angles in radians).
Fields§
§width: u32§height: u32§zoom: f64§integer_zoom: u8§angle_rad: f64§pitch_rad: f64§camera_to_center_distance: f64§is_globe: bool§world_wraps: boolTrait Implementations§
Auto Trait Implementations§
impl Forget for ViewInfo
impl Freeze for ViewInfo
impl Move for ViewInfo
impl RefUnwindSafe for ViewInfo
impl Send for ViewInfo
impl Sync for ViewInfo
impl Unpin for ViewInfo
impl UnsafeUnpin for ViewInfo
impl UnwindSafe for ViewInfo
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