Functions for angle transformations and manipulations. In particular, methods for translating between radians and HH:MM:SS.S or DDD:MM:SS.S type sexagesimal representations are provided.
DEGREE
ARC_MINUTE
ARC_SECOND
radiansToDms( rad )
rad (floating point): angle in radiansradiansToDms( rad, secFig )
rad (floating point): angle in radianssecFig (integer): number of decimal places in the seconds fieldradiansToHms( rad )
rad (floating point): angle in radiansradiansToHms( rad, secFig )
rad (floating point): angle in radianssecFig (integer): number of decimal places in the seconds fielddmsToRadians( dms )
dm[s], or some others.
Additional spaces and leading +/- are permitted.
dms (String): formatted DMS stringhmsToRadians( hms )
hm[s], or some others.
Additional spaces and leading +/- are permitted.
hms (String): formatted HMS stringdmsToRadians( deg, min, sec )
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.
deg (floating point): degrees part of anglemin (floating point): minutes part of anglesec (floating point): seconds part of anglehmsToRadians( hour, min, sec )
In conversions of this type, one has to be careful to get the
sign right in converting angles which are between 0 and -1 hours.
This routine uses the sign bit of the hour argument,
taking care to distinguish between +0 and -0 (their internal
representations are different for floating point values).
hour (floating point): degrees part of anglemin (floating point): minutes part of anglesec (floating point): seconds part of angleskyDistance( ra1, dec1, ra2, dec2 )
ra1 (floating point): right ascension of point 1 in radiansdec1 (floating point): declination of point 1 in radiansra2 (floating point): right ascension of point 2 in radiansdec2 (floating point): declination of point 2 in radiansskyDistanceDegrees( ra1, dec1, ra2, dec2 )
ra1 (floating point): right ascension of point 1 in degreesdec1 (floating point): declination of point 1 in degreesra2 (floating point): right ascension of point 2 in degreesdec2 (floating point): declination of point 2 in degreeshoursToRadians( hours )
hours (floating point): angle in hoursdegreesToRadians( deg )
deg (floating point): angle in degreesradiansToDegrees( rad )
rad (floating point): angle in radiansraFK4toFK5( raFK4, decFK4 )
raFK4 (floating point): right ascension in B1950.0 FK4 system (radians)decFK4 (floating point): declination in B1950.0 FK4 system (radians)decFK4toFK5( raFK4, decFK4 )
raFK4 (floating point): right ascension in B1950.0 FK4 system (radians)decFK4 (floating point): declination in B1950.0 FK4 system (radians)raFK5toFK4( raFK5, decFK5 )
raFK5 (floating point): right ascension in J2000.0 FK5 system (radians)decFK5 (floating point): declination in J2000.0 FK5 system (radians)decFK5toFK4( raFK5, decFK5 )
raFK5 (floating point): right ascension in J2000.0 FK5 system (radians)decFK5 (floating point): declination in J2000.0 FK5 system (radians)raFK4toFK5( raFK4, decFK4, bepoch )
bepoch parameter is the epoch at which the position in
the FK4 frame was determined.
raFK4 (floating point): right ascension in B1950.0 FK4 system (radians)decFK4 (floating point): declination in B1950.0 FK4 system (radians)bepoch (floating point): Besselian epochdecFK4toFK5( raFK4, decFK4, bepoch )
bepoch parameter is the epoch at which the position in
the FK4 frame was determined.
raFK4 (floating point): right ascension in B1950.0 FK4 system (radians)decFK4 (floating point): declination in B1950.0 FK4 system (radians)bepoch (floating point): Besselian epochraFK5toFK4( raFK5, decFK5, bepoch )
raFK5 (floating point): right ascension in J2000.0 FK5 system (radians)decFK5 (floating point): declination in J2000.0 FK5 system (radians)bepoch (floating point): Besselian epochdecFK5toFK4( raFK5, decFK5, bepoch )
raFK5 (floating point): right ascension in J2000.0 FK5 system (radians)decFK5 (floating point): declination in J2000.0 FK5 system (radians)bepoch (floating point): Besselian epoch