pub struct Rotation3d { /* private fields */ }Expand description
Normalized 3D rotation applied in a right-handed coordinate system.
Implementations§
Source§impl Rotation3d
impl Rotation3d
Sourcepub const IDENTITY: Rotation3d
pub const IDENTITY: Rotation3d
Rotation that leaves vectors unchanged.
Sourcepub fn from_axis_angle(
axis: Vec3,
radians: f32,
) -> Result<Rotation3d, Pseudo3dError>
pub fn from_axis_angle( axis: Vec3, radians: f32, ) -> Result<Rotation3d, Pseudo3dError>
Builds a rotation around a non-zero finite axis by radians.
Sourcepub fn from_euler_xyz(
x: f32,
y: f32,
z: f32,
) -> Result<Rotation3d, Pseudo3dError>
pub fn from_euler_xyz( x: f32, y: f32, z: f32, ) -> Result<Rotation3d, Pseudo3dError>
Builds a rotation that applies X, then Y, then Z rotations in radians.
Sourcepub fn then(self, next: Rotation3d) -> Result<Rotation3d, Pseudo3dError>
pub fn then(self, next: Rotation3d) -> Result<Rotation3d, Pseudo3dError>
Composes rotations so self is applied first and next second.
Trait Implementations§
Source§impl Clone for Rotation3d
impl Clone for Rotation3d
Source§fn clone(&self) -> Rotation3d
fn clone(&self) -> Rotation3d
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Rotation3d
Source§impl Debug for Rotation3d
impl Debug for Rotation3d
Source§impl PartialEq for Rotation3d
impl PartialEq for Rotation3d
impl StructuralPartialEq for Rotation3d
Auto Trait Implementations§
impl Freeze for Rotation3d
impl RefUnwindSafe for Rotation3d
impl Send for Rotation3d
impl Sync for Rotation3d
impl Unpin for Rotation3d
impl UnsafeUnpin for Rotation3d
impl UnwindSafe for Rotation3d
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.