angleFromHourMinSec function

Angle angleFromHourMinSec(
  1. int hour,
  2. int minute,
  3. double second, [
  4. double uncert = 0,
])

Constructs an angle from hours, minutes and seconds of time (as opposed to arc).

Implementation

Angle angleFromHourMinSec(int hour, int minute, double second,
    [double uncert = 0]) {
  final mks = hoursTime.toMks(hour).toDouble() +
      minutesTime.toMks(minute).toDouble() +
      secondsTime.toMks(second).toDouble();
  return Angle.inUnits(mks, Angle.radians, uncert);
}