make_step: make step function

make_stepR Documentation

make step function

Description

make_step determines the new position of the vessel following a move, using the step distance and bearing inputs.

Usage

make_step(stepD, Bear, start.x, start.y)

Arguments

stepD

is a Numeric vector of the distance to move

Bear

is a Numeric vector of the bearing to move (in degrees)

start.x

is the starting point on the x-axis

start.y

is the starting point on the y-axis

Value

returns a new coordinate position through a vector (x, y)

Examples

make_step(stepD = 20, Bear = 90, start.x = 20, start.y = 5)

pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.