#[repr(C)]pub struct EulerAngles {
pub roll: f64,
pub pitch: f64,
pub yaw: f64,
}
Fields§
§roll: f64
§pitch: f64
§yaw: f64
Implementations§
Source§impl EulerAngles
impl EulerAngles
pub fn new(roll: f64, pitch: f64, yaw: f64) -> Self
Sourcepub fn from_quaternion(quat: &Quaternion<f64>) -> Self
pub fn from_quaternion(quat: &Quaternion<f64>) -> Self
Converts a quaternion into euler angles (in radians). The euler angles are represented according to the Tait-Bryan formalism and applied in the Z-Y’-X“ order (where Z -> yaw, Y -> pitch, X -> roll).
Trait Implementations§
Source§impl Clone for EulerAngles
impl Clone for EulerAngles
Source§fn clone(&self) -> EulerAngles
fn clone(&self) -> EulerAngles
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EulerAngles
impl Debug for EulerAngles
Source§impl From<Quaternion<f64>> for EulerAngles
impl From<Quaternion<f64>> for EulerAngles
Source§fn from(quat: Quaternion<f64>) -> Self
fn from(quat: Quaternion<f64>) -> Self
Converts to this type from the input type.
impl Copy for EulerAngles
Auto Trait Implementations§
impl Freeze for EulerAngles
impl RefUnwindSafe for EulerAngles
impl Send for EulerAngles
impl Sync for EulerAngles
impl Unpin for EulerAngles
impl UnwindSafe for EulerAngles
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.