Struct FreeCameraOptions
#[non_exhaustive]pub struct FreeCameraOptions {
pub position: Option<Vec3>,
pub orientation: Option<Quaternion>,
}Expand description
Free camera position and orientation in MapLibre Native camera space.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.position: Option<Vec3>§orientation: Option<Quaternion>Implementations§
§impl FreeCameraOptions
impl FreeCameraOptions
pub fn new() -> FreeCameraOptions
pub fn with_position(self, position: Vec3) -> FreeCameraOptions
pub fn with_orientation(self, orientation: Quaternion) -> FreeCameraOptions
Trait Implementations§
§impl Clone for FreeCameraOptions
impl Clone for FreeCameraOptions
§fn clone(&self) -> FreeCameraOptions
fn clone(&self) -> FreeCameraOptions
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 more§impl Debug for FreeCameraOptions
impl Debug for FreeCameraOptions
§impl Default for FreeCameraOptions
impl Default for FreeCameraOptions
§fn default() -> FreeCameraOptions
fn default() -> FreeCameraOptions
Returns the “default value” for a type. Read more
§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