StelLocation.cpp   StelLocation.cpp 
skipping to change at line 127 skipping to change at line 127
loc.planetName = "Earth"; loc.planetName = "Earth";
} }
if (splitline.size()>11) if (splitline.size()>11)
{ {
// Parse optional associated landscape key // Parse optional associated landscape key
loc.landscapeKey = splitline.at(11); loc.landscapeKey = splitline.at(11);
} }
return loc; return loc;
} }
// Compute great-circle distance between two locations
float StelLocation::distanceDegrees(const float long1, const float lat1, co
nst float long2, const float lat2)
{
const float DEGREES=M_PI/180.0f;
return std::acos( std::sin(lat1*DEGREES)*std::sin(lat2*DEGREES) +
std::cos(lat1*DEGREES)*std::cos(la
t2*DEGREES)*std::cos((long1-long2)*DEGREES) ) / DEGREES;
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/