[−][src]Struct batbox::Quat
Fields
i: T
j: T
k: T
w: T
Methods
impl<T> Quat<T>
[src]
impl<T: Float> Quat<T>
[src]
pub fn identity() -> Self
[src]
pub fn from_axis_angle(axis: Vec3<T>, angle: T) -> Self
[src]
pub fn len(self) -> T
[src]
pub fn len_sqr(self) -> T
[src]
pub fn normalize(self) -> Self
[src]
pub fn lerp(v0: Self, v1: Self, t: T) -> Self
[src]
Trait Implementations
impl<T: Num> Add<Quat<T>> for Quat<T>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<T: Clone> Clone for Quat<T>
[src]
impl<T: Copy> Copy for Quat<T>
[src]
impl<T: Debug> Debug for Quat<T>
[src]
impl<'de, T> Deserialize<'de> for Quat<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Float> Div<T> for Quat<T>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self
[src]
impl<T: Float> DivAssign<T> for Quat<T>
[src]
fn div_assign(&mut self, rhs: T)
[src]
impl<T: Float> From<Quat<T>> for Mat4<T>
[src]
impl<T: Float> Mul<Quat<T>> for Quat<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<T: Float> Mul<T> for Quat<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<T: Float> MulAssign<Quat<T>> for Quat<T>
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl<T: Float> MulAssign<T> for Quat<T>
[src]
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: Neg<Output = T>> Neg for Quat<T>
[src]
impl<T> Serialize for Quat<T> where
T: Serialize,
[src]
T: Serialize,
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,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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> 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>,