point.py - Represents a generic point on a sphere as a Python object.
See documentation of class Point for details. Ole Nielsen, ANU 2002
Bases: object
Definition of a generic point on the sphere.
Defines a point in terms of latitude and longitude and computes distances to other points on the sphere.
Author: Ole Nielsen, ANU 2002
Compute Azimuth bearing (AZ) from current point to P.
Parameters: | P (Point) – A relative point |
---|---|
Returns: | bearing in radians |
Return type: | float |
Compute the Creat Circle Angle (GCA) between current point and P.
Parameters: | P (Point) – A relative point |
---|---|
Returns: | angle in radians |
Return type: | float |
Very cheap and rough approximation to distance.
Parameters: | P (Point) – A relative point |
---|---|
Returns: | distance |
Return type: | float |
Bearing (in degrees) to point P.
Parameters: | P (Point) – A relative point |
---|---|
Returns: | bearing degrees |
Return type: | int |
Distance to point P.
Parameters: | P (Point) – A relative point |
---|---|
Returns: | distance |
Return type: | float |
Make a circle about this point.
Parameters: |
|
---|---|
Returns: | list of lon, lat coordinates defining the circle |
Return type: | list |