pub struct CameraVelocity {
pub pan: ScreenPoint,
pub zoom: f64,
pub bearing: f64,
pub pitch: f64,
}Expand description
How fast each part of a camera change moves.
See mln_camera_velocity in the
C API reference.
Fields§
§pan: ScreenPointHow fast the map’s content moves on the screen, in logical pixels per second.
zoom: f64In zoom levels per second.
bearing: f64In degrees per second.
pitch: f64In degrees per second.
Trait Implementations§
Source§impl Clone for CameraVelocity
impl Clone for CameraVelocity
Source§fn clone(&self) -> CameraVelocity
fn clone(&self) -> CameraVelocity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraVelocity
Source§impl Debug for CameraVelocity
impl Debug for CameraVelocity
Source§impl Default for CameraVelocity
impl Default for CameraVelocity
Source§fn default() -> CameraVelocity
fn default() -> CameraVelocity
Returns the “default value” for a type. Read more
Source§impl PartialEq for CameraVelocity
impl PartialEq for CameraVelocity
impl StructuralPartialEq for CameraVelocity
Auto Trait Implementations§
impl Freeze for CameraVelocity
impl RefUnwindSafe for CameraVelocity
impl Send for CameraVelocity
impl Sync for CameraVelocity
impl Unpin for CameraVelocity
impl UnsafeUnpin for CameraVelocity
impl UnwindSafe for CameraVelocity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more