[−][src]Struct iomath::types::basic_types::TQuaternion
Fields
w: T
x: T
y: T
z: T
Implementations
impl<T> TQuaternion<T> where
T: Zero<T> + One<T>,
[src]
T: Zero<T> + One<T>,
pub fn identity() -> Self
[src]
Creates TQuaternion whose members are (w: 1, x: 0, y: 0, z: 0)
use iomath::quaternions::Quaternion; let quaternion = Quaternion::identity(); assert_eq!(quaternion, Quaternion { w: 1.0, x: 0.0, y: 0.0, z: 0.0 });
Trait Implementations
impl<T> Debug for TQuaternion<T> where
T: Debug,
[src]
T: Debug,
impl<T> From<TQuaternion<T>> for TVector2<T>
[src]
fn from(quat: TQuaternion<T>) -> Self
[src]
impl<T> From<TQuaternion<T>> for TVector3<T>
[src]
fn from(quat: TQuaternion<T>) -> Self
[src]
impl<T> From<TQuaternion<T>> for TVector4<T>
[src]
fn from(quat: TQuaternion<T>) -> Self
[src]
impl<T> PartialEq<TQuaternion<T>> for TQuaternion<T> where
T: PartialEq,
[src]
T: PartialEq,
Auto Trait Implementations
impl<T> RefUnwindSafe for TQuaternion<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for TQuaternion<T> where
T: Send,
T: Send,
impl<T> Sync for TQuaternion<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TQuaternion<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for TQuaternion<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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,