SensorManager.GetOrientation(Single[], Single[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the device's orientation based on the rotation matrix.
[Android.Runtime.Register("getOrientation", "([F[F)[F", "")]
public static float[]? GetOrientation (float[]? R, float[]? values);
[<Android.Runtime.Register("getOrientation", "([F[F)[F", "")>]
static member GetOrientation : single[] * single[] -> single[]
Parameters
- R
- Single[]
rotation matrix see #getRotationMatrix.
- values
- Single[]
an array of 3 floats to hold the result.
Returns
- Single[]
The array values passed as argument.
- Attributes
Remarks
Java documentation for android.hardware.SensorManager.getOrientation(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
See also
- <xref:Android.Hardware.SensorManager.GetRotationMatrix(System.Single%5b%5d%2c+System.Single%5b%5d%2c+System.Single%5b%5d%2c+System.Single%5b%5d)>
- GeomagneticField