pub struct FreeCameraOptions {
pub position: Option<Vec3>,
pub orientation: Option<Quaternion>,
}Expand description
The camera’s position and orientation in three dimensions.
See mln_free_camera_options in the
C API reference.
Fields§
§position: Option<Vec3>The camera’s position in Web Mercator units, where the world is 1 wide,
(0, 0) is its northwest corner, and (1, 1) is its southeast corner. z
is the altitude in the same units.
orientation: Option<Quaternion>The camera’s rotation from looking straight down with north at the top of the screen.
Trait Implementations§
Source§impl Clone for FreeCameraOptions
impl Clone for FreeCameraOptions
Source§fn clone(&self) -> FreeCameraOptions
fn clone(&self) -> FreeCameraOptions
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 FreeCameraOptions
Source§impl Debug for FreeCameraOptions
impl Debug for FreeCameraOptions
Source§impl Default for FreeCameraOptions
impl Default for FreeCameraOptions
Source§fn default() -> FreeCameraOptions
fn default() -> FreeCameraOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FreeCameraOptions
impl PartialEq for FreeCameraOptions
impl StructuralPartialEq for FreeCameraOptions
Auto Trait Implementations§
impl Freeze for FreeCameraOptions
impl RefUnwindSafe for FreeCameraOptions
impl Send for FreeCameraOptions
impl Sync for FreeCameraOptions
impl Unpin for FreeCameraOptions
impl UnsafeUnpin for FreeCameraOptions
impl UnwindSafe for FreeCameraOptions
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