Struct boxcars::Quaternion
source · pub struct Quaternion {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
Fields§
§x: f32
§y: f32
§z: f32
§w: f32
Implementations§
source§impl Quaternion
impl Quaternion
pub fn decode_compressed(bits: &mut LittleEndianReader<'_>) -> Option<Self>
pub fn decode(bits: &mut LittleEndianReader<'_>) -> Option<Self>
Trait Implementations§
source§impl Clone for Quaternion
impl Clone for Quaternion
source§fn clone(&self) -> Quaternion
fn clone(&self) -> Quaternion
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 Quaternion
impl Debug for Quaternion
source§impl PartialEq<Quaternion> for Quaternion
impl PartialEq<Quaternion> for Quaternion
source§fn eq(&self, other: &Quaternion) -> bool
fn eq(&self, other: &Quaternion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.