View source: R/A014_sphericalConversions.R
spherical2cart | R Documentation |
Converts spherical co-ordinates into cartesian co-ordinates.
spherical2cart( x = 0, y = 0, z = 0, radius, inclination, azimuth, as.deg = FALSE )
x, y |
the cartesian co-ordinates where angles are drawn from. Can be a vector and defaults to 0. |
as.deg |
defaults to false. Set to TRUE if you give bearings in degrees instead of radians. |
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 |
Uses conventions fromm physics. To Do: Add mathematics convention.
Returns a list with x, y and z co-ordinates.
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.