Function dmsToDegrees( deg, min, sec )

Description:
Converts degrees, minutes, seconds to an angle in degrees.

In conversions of this type, one has to be careful to get the sign right in converting angles which are between 0 and -1 degrees. This routine uses the sign bit of the deg argument, taking care to distinguish between +0 and -0 (their internal representations are different for floating point values). It is illegal for the min or sec arguments to be negative.

Parameters:
deg (floating point)
degrees part of angle
min (floating point)
minutes part of angle
sec (floating point)
seconds part of angle
Return Value (floating point):
specified angle in degrees
Signature:
double dmsToDegrees(double, double, double)