Function fmtDegLat

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

    If the number is not in the range [-pi, pi], " ??${sep1}??${sep2}??" is returned.

    Parameters

    • angleRad: number

      The latitude 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