pub struct Vector3<F: VectorFrame, U: VectorUnit> { /* private fields */ }Expand description
Three components of one quantity in one frame.
Components are in the frame’s axis order (VectorFrame::AXES); each frame
has accessors named after its axes.
Implementations§
Source§impl<F: VectorFrame, U: VectorUnit> Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Vector3<F, U>
Sourcepub const fn components(&self) -> [U; 3]
pub const fn components(&self) -> [U; 3]
Components in axis order.
Sourcepub fn horizontal_magnitude(&self) -> U
pub fn horizontal_magnitude(&self) -> U
Length of the projection on the first two axes (horizontal, for a level frame).
Source§impl<U: VectorUnit> Vector3<Ned, U>
impl<U: VectorUnit> Vector3<Ned, U>
Sourcepub fn horizontal_direction(&self) -> Option<TrueCourse>
pub fn horizontal_direction(&self) -> Option<TrueCourse>
True direction of the horizontal component; None if negligible.
For a velocity: course over ground.
Source§impl<U: VectorUnit> Vector3<Enu, U>
impl<U: VectorUnit> Vector3<Enu, U>
Sourcepub fn horizontal_direction(&self) -> Option<TrueCourse>
pub fn horizontal_direction(&self) -> Option<TrueCourse>
True direction of the horizontal component; None if negligible.
Trait Implementations§
Source§impl<F: VectorFrame, U: VectorUnit> Add for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Add for Vector3<F, U>
Source§impl<F: Clone + VectorFrame, U: Clone + VectorUnit> Clone for Vector3<F, U>
impl<F: Clone + VectorFrame, U: Clone + VectorUnit> Clone for Vector3<F, U>
impl<F: Copy + VectorFrame, U: Copy + VectorUnit> Copy for Vector3<F, U>
Source§impl<F: VectorFrame, U: VectorUnit> Debug for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Debug for Vector3<F, U>
Source§impl<F: VectorFrame, U: VectorUnit + Display> Display for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit + Display> Display for Vector3<F, U>
Source§impl<F: VectorFrame, U: VectorUnit> Div<f64> for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Div<f64> for Vector3<F, U>
Source§impl<F: VectorFrame, U: VectorUnit> Mul<f64> for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Mul<f64> for Vector3<F, U>
Source§impl<F: VectorFrame, U: VectorUnit> Neg for Vector3<F, U>
impl<F: VectorFrame, U: VectorUnit> Neg for Vector3<F, U>
Source§impl<F: PartialEq + VectorFrame, U: PartialEq + VectorUnit> PartialEq for Vector3<F, U>
impl<F: PartialEq + VectorFrame, U: PartialEq + VectorUnit> PartialEq for Vector3<F, U>
impl<F: PartialEq + VectorFrame, U: PartialEq + VectorUnit> StructuralPartialEq for Vector3<F, U>
Auto Trait Implementations§
impl<F, U> Freeze for Vector3<F, U>
impl<F, U> RefUnwindSafe for Vector3<F, U>
impl<F, U> Send for Vector3<F, U>
impl<F, U> Sync for Vector3<F, U>
impl<F, U> Unpin for Vector3<F, U>
impl<F, U> UnsafeUnpin for Vector3<F, U>
impl<F, U> UnwindSafe for Vector3<F, U>
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