#[repr(C)]pub struct OrientationVector {
pub o_vector: UnitVector3<f64>,
pub theta: f64,
}
Fields§
§o_vector: UnitVector3<f64>
§theta: f64
Implementations§
Source§impl OrientationVector
impl OrientationVector
pub fn new(o_x: f64, o_y: f64, o_z: f64, theta: f64) -> Self
pub fn to_quaternion(&self) -> Quaternion<f64>
Trait Implementations§
Source§impl ApproxEq for OrientationVector
impl ApproxEq for OrientationVector
Source§type Margin = F64Margin
type Margin = F64Margin
This type type defines a margin within which two values are to be
considered approximately equal. It must implement
Default
so that
approx_eq()
can be called on unknown types.Source§impl Clone for OrientationVector
impl Clone for OrientationVector
Source§fn clone(&self) -> OrientationVector
fn clone(&self) -> OrientationVector
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 OrientationVector
impl Debug for OrientationVector
Source§impl From<Quaternion<f64>> for OrientationVector
impl From<Quaternion<f64>> for OrientationVector
Source§fn from(quat: Quaternion<f64>) -> Self
fn from(quat: Quaternion<f64>) -> Self
Converts to this type from the input type.
impl Copy for OrientationVector
Auto Trait Implementations§
impl Freeze for OrientationVector
impl RefUnwindSafe for OrientationVector
impl Send for OrientationVector
impl Sync for OrientationVector
impl Unpin for OrientationVector
impl UnwindSafe for OrientationVector
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.