Function fmtHours

  • Format an angle, measured in radians, as sexagesimal hours.

    Before formatting, the angle is normalized to lie within 0-2pi.

    Parameters

    • angleRad: number

      The angle in radians.

    • sep1: string = ":"

      The text to put between the hours and the minutes. Defaults to ":".

    • sep2: string = ":"

      The text to put between the minutes and the seconds. Defaults to ":".

    • precision: number = 0

      The number of places of decimal precision to include in the result. Defaults to 0.

    Returns string

    The formatted angle.

Generated using TypeDoc