pol2cart: Converts polar coordinates to cartesian

Description Usage Arguments Value

View source: R/trigonometry.R

Description

Converts polar coordinates to cartesian

Usage

1
pol2cart(r, theta, origin = c(x = 0, y = 0))

Arguments

r

vector of radial coordinate(s), the distance from the origin

theta

vector of polar angle(s), the counterclockwise angle from the x-axis

origin

a named vector (with x and y as names) being the location of the origin

Value

a 2 column matrix with names x and y with the cartesian coordinates therein


gtm19/angularsweep documentation built on July 27, 2020, 2 p.m.