Version 7 (modified by rwilson, 14 years ago) (diff)


Internal Documentation/Classes

Class Point

Defined in file coordinate_transforms/


The Point class defines a point on the geode surface in terms of latitude and longitude. The great-circle distance to other points on the surface may be computed.

Point Attributes

degrees2radians Internal constant used to convert degrees to radians.
R Internal constant holding radius of the Earth in metres.
latitude The latitude of the point.
longitude The longitude of the point.
coslat Cosine of the point's latitude.
coslon Cosine of the point's longitude.
sinlat Sine of the point's latitude.
sinlon Sine of the point's longitude.

Point Methods

BearingTo(self, P) Returns the bearing in degrees from self to point P.
DistanceTo(self, P)!!! Returns the distance from self to P in metres.


Internal Documentation/Classes