anglePoint: anglePoint function

View source: R/anglePoint.R

anglePointR Documentation

anglePoint function

Description

function to find new point given a reference point, an angle and a distance.

Usage

anglePoint(d, theta, ref = c(0, 0))

Arguments

d

numeric. distance traveled

theta

numeric. angle in degrees to move in.

ref

numeric. Reference point to start at. length must be 2. Default is c(0, 0)

Details

shift point by angle and distance.

Value

numeric. point

Examples

anglePoint(d = 1, theta = 0, ref = c(0,0))
anglePoint(d = 2, theta = 90, ref = c(1,0))

nsantantonio/fieldMapR documentation built on Feb. 4, 2025, 3:07 a.m.