C++ (Qt)inline bool is_less_angle(int hours, int minutes, int seconds) { static const double omega_1 = 2.0*M_PI/double(24*3600); static const double omega_2 = 2.0*M_PI/double(60*60); static const double omega_3 = 2.0*M_PI/double(60); int t_sec = hours*3600 + minutes*60 + seconds; double c1 = cos(omega_1*t_sec); double c2 = cos(omega_2*t_sec); double c3 = cos(omega_3*t_sec); ...}