Home | History | Annotate | Download | only in i18n

Lines Matching full:angle

217  * Normalize an angle so that it's in the range 0 - 2pi.
218 * For positive angles this is just (angle % 2pi), but the Java
221 inline static double norm2PI(double angle) {
222 return normalize(angle, CalendarAstronomer::PI * 2.0);
226 * Normalize an angle into the range -PI - PI
228 inline static double normPI(double angle) {
229 return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronomer::PI;
503 double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle
923 // // where 15 degrees corresponds to one hour. Since LST really is an angle,
1146 * This is really the angle between the
1303 // Find out how far we are from the desired angle
1307 // which the desired angle occurs.
1320 double angle = func.eval(*this);
1323 double factor = uprv_fabs(deltaT / normPI(angle-lastAngle));
1325 // Correct the time estimate based on how far off the angle is
1326 deltaT = normPI(desired - angle) * factor;
1356 lastAngle = angle;
1384 double angle = ::acos(-tanL * ::tan(pos.declination));
1385 double lst = ((rise ? CalendarAstronomer_PI2-angle : angle) + pos.ascension ) * 24 / CalendarAstronomer_PI2;
1392 U_DEBUG_ASTRO_MSG(("%d] dT=%.3lf, angle=%.3lf, lst=%.3lf, A=%.3lf/D=%.3lf\n",
1393 count, deltaT, angle, lst, pos.ascension, pos.declination));
1407 * Return the obliquity of the ecliptic (the angle between the ecliptic
1513 // static private String radToHms(double angle) {
1514 // int hrs = (int) (angle*RAD_HOUR);
1515 // int min = (int)((angle*RAD_HOUR - hrs) * 60);
1516 // int sec = (int)((angle*RAD_HOUR - hrs - min/60.0) * 3600);
1521 // static private String radToDms(double angle) {
1522 // int deg = (int) (angle*RAD_DEG);
1523 // int min = (int)((angle*RAD_DEG - deg) * 60);
1524 // int sec = (int)((angle*RAD_DEG - deg - min/60.0) * 3600);