Struct openxr::Quaternionf
source · #[repr(C)]pub struct Quaternionf {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
Expand description
See XrQuaternionf
Fields§
§x: f32
§y: f32
§z: f32
§w: f32
Implementations§
source§impl Quaternionf
impl Quaternionf
pub const IDENTITY: Quaternionf = _
Trait Implementations§
source§impl Clone for Quaternionf
impl Clone for Quaternionf
source§fn clone(&self) -> Quaternionf
fn clone(&self) -> Quaternionf
Returns a copy 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 moresource§impl Debug for Quaternionf
impl Debug for Quaternionf
source§impl Default for Quaternionf
impl Default for Quaternionf
source§fn default() -> Quaternionf
fn default() -> Quaternionf
Returns the “default value” for a type. Read more
source§impl From<Quaternion<f32>> for Quaternionf
impl From<Quaternion<f32>> for Quaternionf
source§fn from(q: Quaternion<f32>) -> Quaternionf
fn from(q: Quaternion<f32>) -> Quaternionf
Converts to this type from the input type.
source§impl PartialEq for Quaternionf
impl PartialEq for Quaternionf
source§fn eq(&self, other: &Quaternionf) -> bool
fn eq(&self, other: &Quaternionf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Quaternionf
impl StructuralPartialEq for Quaternionf
Auto Trait Implementations§
impl Freeze for Quaternionf
impl RefUnwindSafe for Quaternionf
impl Send for Quaternionf
impl Sync for Quaternionf
impl Unpin for Quaternionf
impl UnwindSafe for Quaternionf
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)