다음을 통해 공유


Location.BearingTo(Location) Method

Definition

Returns the approximate initial bearing in degrees east of true north when traveling along the shortest path between this location and the given location.

[Android.Runtime.Register("bearingTo", "(Landroid/location/Location;)F", "GetBearingTo_Landroid_location_Location_Handler")]
public virtual float BearingTo (Android.Locations.Location dest);
[<Android.Runtime.Register("bearingTo", "(Landroid/location/Location;)F", "GetBearingTo_Landroid_location_Location_Handler")>]
abstract member BearingTo : Android.Locations.Location -> single
override this.BearingTo : Android.Locations.Location -> single

Parameters

dest
Location

the destination location

Returns

the initial bearing in degrees

Attributes

Remarks

Returns the approximate initial bearing in degrees east of true north when traveling along the shortest path between this location and the given location. The shortest path is defined using the WGS84 ellipsoid. Locations that are (nearly) antipodal may produce meaningless results.

Java documentation for android.location.Location.bearingTo(android.location.Location).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to