Description Usage Arguments Value Examples
View source: R/utility_functions.R
A function to use the magnitude and angle of a 2D vector and convert them to cartesian coordinates (assumes the vector starts at [0,0]).
1 | convertMagnitudeAngle(H, A, degrees = T)
|
H |
a magnitude. |
A |
an angle. |
degrees |
if true, the angle is assumed to be in degrees. |
A set of cartesian coordinates.
1 2 | cart = convertMagnitudeAngle( 2, 45 )
print( cart )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.