Fixed backward AUtoLightYears conversion function.

ver1_5_1
Chris Laurel 2006-09-08 16:33:06 +00:00
parent 7b3234f948
commit 522e11c88b
1 changed files with 2 additions and 2 deletions

View File

@ -129,9 +129,9 @@ namespace astro
double lightYearsToAU(double);
// TODO: templatize the rest of the conversion functions
template<class T> T AUtoLightYears(T ly)
template<class T> T AUtoLightYears(T au)
{
return ly * (T) AU_PER_LY;
return au / (T) AU_PER_LY;
}
float AUtoKilometers(float);