pub struct VesselMotion { /* private fields */ }Expand description
Motion through the water, as input to a leeway model.
Heading and speed through the water, not over the ground: leeway acts relative to the water; current is added afterwards.
Implementations§
Source§impl VesselMotion
impl VesselMotion
Sourcepub const fn new(heading: TrueCourse, speed_through_water: Speed) -> Self
pub const fn new(heading: TrueCourse, speed_through_water: Speed) -> Self
Vessel on heading at speed_through_water.
Sourcepub const fn heading(&self) -> TrueCourse
pub const fn heading(&self) -> TrueCourse
True heading.
Sourcepub const fn speed_through_water(&self) -> Speed
pub const fn speed_through_water(&self) -> Speed
Speed through the water; negative for sternway.
Trait Implementations§
Source§impl Clone for VesselMotion
impl Clone for VesselMotion
impl Copy for VesselMotion
Source§impl Debug for VesselMotion
impl Debug for VesselMotion
Source§impl PartialEq for VesselMotion
impl PartialEq for VesselMotion
impl StructuralPartialEq for VesselMotion
Auto Trait Implementations§
impl Freeze for VesselMotion
impl RefUnwindSafe for VesselMotion
impl Send for VesselMotion
impl Sync for VesselMotion
impl Unpin for VesselMotion
impl UnsafeUnpin for VesselMotion
impl UnwindSafe for VesselMotion
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