Function fmtDegLon

  • Format a longitudinal angle, measured in radians, as sexagesimal degrees.

    Before formatting, the angle is normalized to lie within 0-2pi. The output will be zero-padded to three digits, e.g. "000:01:30" or "359:59:59.123".

    Parameters

    • angleRad: number

      The longitude in radians.

    • sep1: string = ":"

      The text to put between the degrees and the arcminutes. Defaults to ":".

    • sep2: string = ":"

      The text to put between the arcminutes and the arcseconds. 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