powered by
Convert degrees to radians (and back again).
DegToRad(deg) RadToDeg(rad)
DegToRad returns a vector of the same length as deg with the angles in radians.
deg
RadToDeg returns a vector of the same length as rad with the angles in degrees.
rad
a vector of angles in degrees.
a vector of angles in radians.
Andri Signorell <andri@signorell.net>
DegToRad(c(90,180,270)) RadToDeg( c(0.5,1,2) * pi)
Run the code above in your browser using DataLab