Next / Previous / Contents / Shipman's homepage

8. class LatLon: Terrestrial position

An instance of this class represents some point on the earth's surface.

8.1. LatLon.__init__(): Constructor

To create a LatLon instance:

LatLon(lat, lon)
lat

The latitude in radians, in the range [-π, π].

lon

The longitude in radians. Values will be normalized to the range [0, 2π).

Instance attributes .lat and .lon will contain the arguments passed to the constructor.