Skip to main content

LeewayModel

Trait LeewayModel 

Source
pub trait LeewayModel {
    // Required method
    fn leeway(&self, motion: VesselMotion, wind: Wind) -> Result<Angle>;
}
Expand description

Leeway model for a hull.

Leeway depends on windage, draught and speed, hence a port rather than a formula. Returns the angle between heading and water track.

Required Methods§

Source

fn leeway(&self, motion: VesselMotion, wind: Wind) -> Result<Angle>

Leeway for motion under wind, positive when set to starboard of the heading.

§Errors

Any error the model raises, e.g. speed outside its fitted range.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§