View source: R/A006_polarConversions.R
polar2cart | R Documentation |
Converts polar co-ordinates into cartesian co-ordinates.
polar2cart(x = 0, y = 0, distance, bearing, as.deg = FALSE)
x, y |
the cartesian co-ordinates where angles are drawn from. Can be a vector and defaults to 0. |
distance |
polar co-ordinate distance(s) from the center. Can be a vector |
bearing |
polar co-ordinate angle(s). Can be a vector. By default this is in radians. See as.deg |
as.deg |
defaults to false. Set to TRUE if you give bearings in degrees instead of radians. |
Returns a list with x and y co-ordinates.
Other polarConversion:
cart2polar()
,
makePolar()
polar2cart(0,0,1,c(0,pi/2,pi,3*pi/2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.