pub struct Quat {
pub w: f64,
pub x: f64,
pub y: f64,
pub z: f64,
}
Fields§
§w: f64
§x: f64
§y: f64
§z: f64
Implementations§
Source§impl Quat
impl Quat
pub fn dot_product(quat0: &Self, quat1: &Self) -> Self
pub fn multiply_quat_with_quat(quat0: &Self, quat1: &Self) -> Self
Source§impl Quat
impl Quat
pub fn matches_closely(&self, other: &Self, tolerance: f64) -> bool
pub fn matches_exactly(&self, other: &Self) -> bool
pub fn multiply_with_quat(&mut self, multiplier: &Quat) -> &mut Self
Trait Implementations§
Source§impl From<RotationDegrees> for Quat
impl From<RotationDegrees> for Quat
Source§fn from(rotation_degrees: RotationDegrees) -> Self
fn from(rotation_degrees: RotationDegrees) -> Self
Converts to this type from the input type.
Source§impl From<RotationRadians> for Quat
impl From<RotationRadians> for Quat
Source§fn from(rotation_radians: RotationRadians) -> Self
fn from(rotation_radians: RotationRadians) -> Self
Converts to this type from the input type.
Source§impl MulAssign<&Quat> for &mut Quat
impl MulAssign<&Quat> for &mut Quat
Source§fn mul_assign(&mut self, rhs: &Quat)
fn mul_assign(&mut self, rhs: &Quat)
Performs the
*=
operation. Read moreSource§impl MulAssign<&Quat> for Quat
impl MulAssign<&Quat> for Quat
Source§fn mul_assign(&mut self, rhs: &Quat)
fn mul_assign(&mut self, rhs: &Quat)
Performs the
*=
operation. Read moreSource§impl MulAssign<Quat> for &mut Quat
impl MulAssign<Quat> for &mut Quat
Source§fn mul_assign(&mut self, rhs: Quat)
fn mul_assign(&mut self, rhs: Quat)
Performs the
*=
operation. Read moreSource§impl MulAssign for Quat
impl MulAssign for Quat
Source§fn mul_assign(&mut self, rhs: Quat)
fn mul_assign(&mut self, rhs: Quat)
Performs the
*=
operation. Read moreimpl Copy for Quat
impl StructuralPartialEq for Quat
Auto Trait Implementations§
impl Freeze for Quat
impl RefUnwindSafe for Quat
impl Send for Quat
impl Sync for Quat
impl Unpin for Quat
impl UnwindSafe for Quat
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