SensorManager.GetAltitude(Single, Single) Method

Definition

Computes the Altitude in meters from the atmospheric pressure and the pressure at sea level.

[Android.Runtime.Register("getAltitude", "(FF)F", "")]
public static float GetAltitude (float p0, float p);
[<Android.Runtime.Register("getAltitude", "(FF)F", "")>]
static member GetAltitude : single * single -> single

Parameters

p0
Single

pressure at sea level

p
Single

atmospheric pressure

Returns

Single

Altitude in meters

Attributes

Remarks

Java documentation for android.hardware.SensorManager.getAltitude(float, float).

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