Method | Description | |
---|---|---|
CourseTo ( MapPoint me, MapPoint other ) : double |
Calculates the course to use to travel to other lat/long pair. The course angle is expressed in degrees clockwise from North, in the range [0,360).
|
|
DistanceTo ( MapPoint me, MapPoint other ) : double |
Calculates distance to other lat/long pair, and returns it. Uses the more exact formula for small distances.
|
|
Offset ( MapPoint me, double northDistanceInMeter, double eastDistanceInMeter, double heightDistanceInMeters ) : MapPoint |
Offsets the current latitude/longitude values by given distances and returns a new value.
|
|
PolarOffset ( MapPoint me, double distanceInMeter, double bearingInDegrees, double heightDistanceInMeters ) : MapPoint |
Offsets the current latitude/longitude values by polar distance and bearing in degrees and returns a new value. The bearing angle is expressed in degrees clockwise from North, in the range [0,360).
|
public static CourseTo ( MapPoint me, MapPoint other ) : double | ||
me | MapPoint | the map point object to calculate course from |
other | MapPoint | other lat/long value |
return | double |
public static DistanceTo ( MapPoint me, MapPoint other ) : double | ||
me | MapPoint | the map point object to calculate distance from |
other | MapPoint | other lat/long value |
return | double |
public static Offset ( MapPoint me, double northDistanceInMeter, double eastDistanceInMeter, double heightDistanceInMeters ) : MapPoint | ||
me | MapPoint | the map point object to offset |
northDistanceInMeter | double | distance in north direction, in meters |
eastDistanceInMeter | double | distance in east direction, in meters |
heightDistanceInMeters | double | height distance, in meters |
return | MapPoint |
public static PolarOffset ( MapPoint me, double distanceInMeter, double bearingInDegrees, double heightDistanceInMeters ) : MapPoint | ||
me | MapPoint | the map point object to offset |
distanceInMeter | double | distance to move, in meter |
bearingInDegrees | double | /// bearing in degress, with 0 degrees being North, 90 being East, 180 being South and 270 /// being West. /// |
heightDistanceInMeters | double | height distance, in meters |
return | MapPoint |