Detailed Description

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...
 

Constructor & Destructor Documentation

PowerUI.GeoPosition.GeoPosition ( LocationInfo  loc,
bool  highAccuracy 
)
inline

Creates a geopos from the given location info.

Member Function Documentation

double PowerUI.GeoPosition.bearing ( double  lon2,
double  lat2 
)
inline

The bearing between this point and another. Output is in degrees from north. Clockwise.

double PowerUI.GeoPosition.distanceAccurate ( double  lon2,
double  lat2,
double  alt2 
)
inline

An accurate distance between this point and the given one using the WGS84 spheroid (as the geolocation API).

double PowerUI.GeoPosition.distanceFast ( double  lon2,
double  lat2,
double  alt2,
out double  bearing 
)
inline

A quick distance between this point and the given one. Gets the bearing too.

Member Data Documentation

GeoCoordinates PowerUI.GeoPosition.coords

The coords.

const double PowerUI.GeoPosition.Deg2Rad =(double)Mathf.Deg2Rad
private

Degrees to radians.

const double PowerUI.GeoPosition.EarthRadius =6378137.0
private

The radius of the earth in meters.

const double PowerUI.GeoPosition.Eccentricity =298.257223563
private

The eccentricity of the WGS84 ellipsoid.

const double PowerUI.GeoPosition.Rad2Deg =(double)Mathf.Rad2Deg
private

Radians to degrees.

long PowerUI.GeoPosition.timestamp

MS time this was recorded at.

Property Documentation

double PowerUI.GeoPosition.age
getpackage

The age of this position.