end_coords: Calculate End Point Coordinates

View source: R/fidelity_funs_calc-coords-from-step.R

end_coordsR Documentation

Calculate End Point Coordinates

Description

Function to calculate end point coordinates from step and turning angle. Called by sim_bcrw().

Usage

end_coords(step, angle, start_x, start_y)

Arguments

step

Numeric. Step length (m for UTM coordinates, degrees for lat/long)

angle

Numeric. Turning angle (degrees)

start_x

Numeric. The X coordinate of the start location (UTM Easting or longitude)

start_y

Numeric. The Y coordinate of the start location (UTM Northing or latitude)

Details

Code adapted from https://rdrr.io/github/ptompalski/UsefulRFunctions/src/R/circular2xy.R

Value

A data frame containing the end points coordinates from the step and turning angle input.


picardis/fidelity documentation built on Dec. 10, 2022, 6:16 a.m.