convertMagnitudeAngle: Conversion to Cartesian Coordinates

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

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]).

Usage

1
convertMagnitudeAngle(H, A, degrees = T)

Arguments

H

a magnitude.

A

an angle.

degrees

if true, the angle is assumed to be in degrees.

Value

A set of cartesian coordinates.

Examples

1
2
cart = convertMagnitudeAngle( 2, 45 )
print( cart )

rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.