The Navigational Constants Interface
/**
* Geometric constants used in navigation computations in
classes within my Moving Map package.
* @author Robert J Morton
* @version 15 January 1998 */
interface navconst {
double Pi = Math.PI; //the circular constant
double TwoPi = Pi + Pi; //double circular constant (number of radians in a complete turn)
double PiBy2 = Math.PI / 2; //number of radians in a right-angle
double DPR = 57.2957795141996; //number of degrees per radian
double KphRps = 6371 * 3600; //approx number of kilometres/hour equivalent to 1 earth-radian/second
double TenDeg = 10 / DPR; //10 degrees in radians
double TkphRPS = 1000 / KphRps; //divisor: 1000kph in radians per second
}
/* Robert J Morton, the author of this program,
is a poor but Right Honourable Member of the
Ancient and Noble Order of the Long-term Unemployed.
Offers of work please to: robmorton@clara.net */