A geolocation position.
Public Member Functions | |
GeoPosition (LocationInfo loc, bool highAccuracy) | |
Creates a geopos from the given location info. More... | |
double | distanceFast (double lon2, double lat2, double alt2, out double bearing) |
A quick distance between this point and the given one. Gets the bearing too. More... | |
double | bearing (double lon2, double lat2) |
The bearing between this point and another. Output is in degrees from north. Clockwise. More... | |
double | distanceAccurate (double lon2, double lat2, double alt2) |
An accurate distance between this point and the given one using the WGS84 spheroid (as the geolocation API). More... | |
Public Attributes | |
long | timestamp |
MS time this was recorded at. More... | |
GeoCoordinates | coords |
The coords. More... | |
Properties | |
double | age [get] |
The age of this position. More... | |
Private Attributes | |
const double | Deg2Rad =(double)Mathf.Deg2Rad |
Degrees to radians. More... | |
const double | Rad2Deg =(double)Mathf.Rad2Deg |
Radians to degrees. More... | |
const double | Eccentricity =298.257223563 |
The eccentricity of the WGS84 ellipsoid. More... | |
const double | EarthRadius =6378137.0 |
The radius of the earth in meters. More... | |
|
inline |
Creates a geopos from the given location info.
|
inline |
The bearing between this point and another. Output is in degrees from north. Clockwise.
|
inline |
An accurate distance between this point and the given one using the WGS84 spheroid (as the geolocation API).
|
inline |
A quick distance between this point and the given one. Gets the bearing too.
GeoCoordinates PowerUI.GeoPosition.coords |
The coords.
|
private |
Degrees to radians.
|
private |
The radius of the earth in meters.
|
private |
The eccentricity of the WGS84 ellipsoid.
|
private |
Radians to degrees.
long PowerUI.GeoPosition.timestamp |
MS time this was recorded at.
|
getpackage |
The age of this position.