一千萬個為什麽

搜索

Blackberry:Coordinates.distance()的返回值

我想知道Coordinates.distance()返回的值的度量

最佳答案

javax.microedition.location.Coordinates.distance:

public float distance(Coordinates to)
Calculates the geodetic distance between the two points according to the ellipsoid model of WGS84. Altitude is neglected from calculations. The implementation shall calculate this as exactly as it can. However, it is required that the result is within 0.35% of the correct result.
Parameters: to - the Coordinates of the destination
Returns: the distance to the destination in meters
Throws: NullPointerException - if the parameter is null
Since: JDE 4.0.2

轉載註明原文: Blackberry:Coordinates.distance()的返回值