voyager/move.py
def leeway_displacement(w, Sl, Yt, dt):
        """Calculates the leeway displacement from vessel parameters 
        and wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter
            dt (float): Time step

        Returns:
            np.array: The displacement due to leeway wind
        """

        # Calculate leeway velocity from wind
        leeway = Displacement.leeway_velocity(w, Sl, Yt)

        # Convert leeway to m/s from knots
        leeway = Displacement.knots_to_si(leeway)

        dxy_leeway = leeway * dt

        return dxy_leeway
Calculates the leeway displacement from vessel parameters 
        and wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter
            dt (float): Time step

        Returns:
            np.array: The displacement due to leeway wind
        
Calculates the leeway displacement from vessel parameters
and wind speed.
Calculates the leeway displacement from vessel parameters and wind speed .
def leeway_displacement(w, Sl, Yt, dt):
        leeway = Displacement.leeway_velocity(w, Sl, Yt)
        leeway = Displacement.knots_to_si(leeway)
        dxy_leeway = leeway * dt
        return dxy_leeway
def leeway_displacement ( w , Sl , Yt , dt ) : leeway = Displacement . leeway_velocity ( w , Sl , Yt ) leeway = Displacement . knots_to_si ( leeway ) dxy_leeway = leeway * dt return dxy_leeway
Calculates the leeway displacement from vessel parameters
and wind speed.
Calculates the leeway displacement from vessel parameters and wind speed .
"""Calculates the leeway displacement from vessel parameters 
        and wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter
            dt (float): Time step

        Returns:
            np.array: The displacement due to leeway wind
        """ # Calculate leeway velocity from wind # Convert leeway to m/s from knots
The displacement due to leeway wind
The displacement due to leeway wind
np.array
w
The wind velocity with two components
The wind velocity with two components
Sl
None
Yt
None
dt
None