pub struct Rotation3<T> { /* private fields */ }
Expand description
Three-dimensional rotation.
Implementations
sourceimpl<T> Rotation3<T>
impl<T> Rotation3<T>
pub fn from_quaternion(quat: Quaternion<T>) -> Self
pub fn into_quaternion(self) -> Quaternion<T>
sourceimpl<T> Rotation3<T> where
T: Float + NumCast + FloatConst,
impl<T> Rotation3<T> where
T: Float + NumCast + FloatConst,
sourcepub fn look_at_any(dir: Vector<T, 3>) -> Self
pub fn look_at_any(dir: Vector<T, 3>) -> Self
Returns any of transformations that rotate -z
-axis to dir
.
Trait Implementations
sourceimpl<T> AbsDiffEq<Rotation3<T>> for Rotation3<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T> AbsDiffEq<Rotation3<T>> for Rotation3<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T> Directional<Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
impl<T> Directional<Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
sourceimpl<T> Distribution<Rotation3<T>> for Uniform where
Unit: Distribution<Vector<T, 3>>,
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
impl<T> Distribution<Rotation3<T>> for Uniform where
Unit: Distribution<Vector<T, 3>>,
RangedUniform<T>: Distribution<T>,
T: SampleUniform + Float + FloatConst + NumCast,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation3<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation3<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T> From<Quaternion<T>> for Rotation3<T>
impl<T> From<Quaternion<T>> for Rotation3<T>
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Rotation3<T>> for Quaternion<T>
impl<T> From<Rotation3<T>> for Quaternion<T>
sourceimpl<T> Reorder<Rotation3<T>, Vector<T, 3_usize>> for Shift<T, 3> where
Rotation3<T>: Transform<Vector<T, 3>> + Copy,
Self: Transform<Vector<T, 3>>,
impl<T> Reorder<Rotation3<T>, Vector<T, 3_usize>> for Shift<T, 3> where
Rotation3<T>: Transform<Vector<T, 3>> + Copy,
Self: Transform<Vector<T, 3>>,
sourceimpl<T> Reorder<Shift<T, 3_usize>, Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
Shift<T, 3>: Transform<Vector<T, 3>>,
impl<T> Reorder<Shift<T, 3_usize>, Vector<T, 3_usize>> for Rotation3<T> where
Self: Transform<Vector<T, 3>>,
Shift<T, 3>: Transform<Vector<T, 3>>,
sourceimpl<T> Transform<Vector<T, 3_usize>> for Rotation3<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Transform<Vector<T, 3_usize>> for Rotation3<T> where
T: Neg<Output = T> + Num + Copy,
impl<T: Copy> Copy for Rotation3<T>
impl<T> StructuralPartialEq for Rotation3<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Rotation3<T> where
T: RefUnwindSafe,
impl<T> Send for Rotation3<T> where
T: Send,
impl<T> Sync for Rotation3<T> where
T: Sync,
impl<T> Unpin for Rotation3<T> where
T: Unpin,
impl<T> UnwindSafe for Rotation3<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more