Struct dbsdk_rs::math::Quaternion
source · [−]Fields
x: f32
y: f32
z: f32
w: f32
Implementations
sourceimpl Quaternion
impl Quaternion
pub const fn new(x: f32, y: f32, z: f32, w: f32) -> Quaternion
pub const fn identity() -> Quaternion
sourcepub fn from_euler(euler_angles: Vector3) -> Quaternion
pub fn from_euler(euler_angles: Vector3) -> Quaternion
Construct a new quaternion from the given rotations about each axis
Trait Implementations
sourceimpl Clone for Quaternion
impl Clone for Quaternion
sourcefn clone(&self) -> Quaternion
fn clone(&self) -> Quaternion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Mul<Quaternion> for Quaternion
impl Mul<Quaternion> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: Quaternion) -> Quaternion
fn mul(self, rhs: Quaternion) -> Quaternion
Performs the
*
operation. Read moresourceimpl Mul<Vector3> for Quaternion
impl Mul<Vector3> for Quaternion
impl Copy for Quaternion
Auto Trait Implementations
impl RefUnwindSafe for Quaternion
impl Send for Quaternion
impl Sync for Quaternion
impl Unpin for Quaternion
impl UnwindSafe for Quaternion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more