[−][src]Struct geng_core::prelude::Quat
Fields
i: T
j: T
k: T
w: T
Implementations
impl<T> Quat<T>
[src]
impl<T> Quat<T> where
T: Float,
[src]
T: Float,
pub fn identity() -> Quat<T>
[src]
pub fn from_axis_angle(axis: Vec3<T>, angle: T) -> Quat<T>
[src]
pub fn len(self) -> T
[src]
pub fn len_sqr(self) -> T
[src]
pub fn normalize(self) -> Quat<T>
[src]
pub fn lerp(v0: Quat<T>, v1: Quat<T>, t: T) -> Quat<T>
[src]
Trait Implementations
impl<T> Add<Quat<T>> for Quat<T> where
T: Num,
[src]
T: Num,
type Output = Quat<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Quat<T>) -> Quat<T>
[src]
impl<T> Clone for Quat<T> where
T: Clone,
[src]
T: Clone,
impl<T> Copy for Quat<T> where
T: Copy,
[src]
T: Copy,
impl<T> Debug for Quat<T> where
T: Debug,
[src]
T: Debug,
impl<'de, T> Deserialize<'de> for Quat<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Quat<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Quat<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Div<T> for Quat<T> where
T: Float,
[src]
T: Float,
type Output = Quat<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Quat<T>
[src]
impl<T> DivAssign<T> for Quat<T> where
T: Float,
[src]
T: Float,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> From<Quat<T>> for Mat4<T> where
T: Float,
[src]
T: Float,
impl<T> Mul<Quat<T>> for Quat<T> where
T: Float,
[src]
T: Float,
type Output = Quat<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Quat<T>) -> Quat<T>
[src]
impl<T> Mul<T> for Quat<T> where
T: Float,
[src]
T: Float,
type Output = Quat<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Quat<T>
[src]
impl<T> MulAssign<Quat<T>> for Quat<T> where
T: Float,
[src]
T: Float,
fn mul_assign(&mut self, rhs: Quat<T>)
[src]
impl<T> MulAssign<T> for Quat<T> where
T: Float,
[src]
T: Float,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T> Neg for Quat<T> where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
impl<T> Serialize for Quat<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl<T> RefUnwindSafe for Quat<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Quat<T> where
T: Send,
T: Send,
impl<T> Sync for Quat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Quat<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Quat<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,