pub struct PointerOrientation {
pub altitude: f32,
pub azimuth: f32,
}Expand description
Orientation of a pointer.
Fields§
§altitude: f32Spherical altitude.
0 is parallel to the surface, π/2 is perpendicular.
azimuth: f32Spherical azimuth.
0 is the positive x axis, π/2 is positive y.
Trait Implementations§
Source§impl Clone for PointerOrientation
impl Clone for PointerOrientation
Source§fn clone(&self) -> PointerOrientation
fn clone(&self) -> PointerOrientation
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 PointerOrientation
Source§impl Debug for PointerOrientation
impl Debug for PointerOrientation
Source§impl Default for PointerOrientation
impl Default for PointerOrientation
Source§impl PartialEq for PointerOrientation
impl PartialEq for PointerOrientation
Source§fn eq(&self, other: &PointerOrientation) -> bool
fn eq(&self, other: &PointerOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerOrientation
Auto Trait Implementations§
impl Freeze for PointerOrientation
impl RefUnwindSafe for PointerOrientation
impl Send for PointerOrientation
impl Sync for PointerOrientation
impl Unpin for PointerOrientation
impl UnsafeUnpin for PointerOrientation
impl UnwindSafe for PointerOrientation
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