Struct viam_rust_utils::spatialmath::utils::OrientationVector
source · #[repr(C)]pub struct OrientationVector {
pub o_vector: UnitVector3<f64>,
pub theta: f64,
}Fields§
§o_vector: UnitVector3<f64>§theta: f64Implementations§
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
§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 copy 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 RefUnwindSafe for OrientationVector
impl Send for OrientationVector
impl Sync for OrientationVector
impl Unpin for OrientationVector
impl UnwindSafe for OrientationVector
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§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> 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§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.