|
* @return {number} degrees in radians |
"Degrees" and "radians" are units of measure, hence "degrees in radians" is a nonsense, just like saying "centimeters in meters"; it should be instead "angle in radians" or "angle in degrees".
Also the function name is misleading: "dmsToDeg" should apparently return a valule in degrees, instead it returns radians; a proper name should be "dmsToDecimal" (x° x' x"" becomes x.xxxxx°).
MeeusJs/lib/Astro.Coord.js
Line 136 in 3f412c6
"Degrees" and "radians" are units of measure, hence "degrees in radians" is a nonsense, just like saying "centimeters in meters"; it should be instead "angle in radians" or "angle in degrees".
Also the function name is misleading: "dmsToDeg" should apparently return a valule in degrees, instead it returns radians; a proper name should be "dmsToDecimal" (x° x' x"" becomes x.xxxxx°).