An instance of this class represents a position on the earth's surface as a latitude (signed, positive for north of the equator) and a longitude (east from longitude 0°).
# - - - - - c l a s s L a t L o n
class LatLon:
"""Represents a latitude+longitude.
"""
The constructor takes the values directly in radians, and stores them that way. The longitude is normalized to the interval [0, 2π).
# - - - L a t L o n . _ _ i n i t _ _
def __init__ ( self, lat, lon ):
"""Constructor for LatLon.
"""
self.lat = lat
self.lon = lon % TWO_PI