Home | History | Annotate | Download | only in i18n

Lines Matching defs:angle

218  * Normalize an angle so that it's in the range 0 - 2pi.
219 * For positive angles this is just (angle % 2pi), but the Java
222 inline static double norm2PI(double angle) {
223 return normalize(angle, CalendarAstronomer::PI * 2.0);
227 * Normalize an angle into the range -PI - PI
229 inline static double normPI(double angle) {
230 return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronomer::PI;
504 double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle
918 // // where 15 degrees corresponds to one hour. Since LST really is an angle,
1141 * This is really the angle between the
1292 // Find out how far we are from the desired angle
1296 // which the desired angle occurs.
1309 double angle = func.eval(*this);
1312 double factor = uprv_fabs(deltaT / normPI(angle-lastAngle));
1314 // Correct the time estimate based on how far off the angle is
1315 deltaT = normPI(desired - angle) * factor;
1345 lastAngle = angle;
1373 double angle = ::acos(-tanL * ::tan(pos.declination));
1374 double lst = ((rise ? CalendarAstronomer_PI2-angle : angle) + pos.ascension ) * 24 / CalendarAstronomer_PI2;
1381 U_DEBUG_ASTRO_MSG(("%d] dT=%.3lf, angle=%.3lf, lst=%.3lf, A=%.3lf/D=%.3lf\n",
1382 count, deltaT, angle, lst, pos.ascension, pos.declination));
1396 * Return the obliquity of the ecliptic (the angle between the ecliptic
1502 // static private String radToHms(double angle) {
1503 // int hrs = (int) (angle*RAD_HOUR);
1504 // int min = (int)((angle*RAD_HOUR - hrs) * 60);
1505 // int sec = (int)((angle*RAD_HOUR - hrs - min/60.0) * 3600);
1510 // static private String radToDms(double angle) {
1511 // int deg = (int) (angle*RAD_DEG);
1512 // int min = (int)((angle*RAD_DEG - deg) * 60);
1513 // int sec = (int)((angle*RAD_DEG - deg - min/60.0) * 3600);