SensorManager.RemapCoordinateSystem(Single[], Axis, Axis, Single[]) Method

Definition

Rotates the supplied rotation matrix so it is expressed in a different coordinate system.

[Android.Runtime.Register("remapCoordinateSystem", "([FII[F)Z", "")]
public static bool RemapCoordinateSystem (float[]? inR, Android.Hardware.Axis X, Android.Hardware.Axis Y, float[]? outR);
[<Android.Runtime.Register("remapCoordinateSystem", "([FII[F)Z", "")>]
static member RemapCoordinateSystem : single[] * Android.Hardware.Axis * Android.Hardware.Axis * single[] -> bool

Parameters

inR
Single[]

the rotation matrix to be transformed. Usually it is the matrix returned by #getRotationMatrix.

X
Axis

defines the axis of the new cooridinate system that coincide with the X axis of the original coordinate system.

Y
Axis

defines the axis of the new cooridinate system that coincide with the Y axis of the original coordinate system.

outR
Single[]

the transformed rotation matrix. inR and outR should not be the same array.

Returns

Boolean

<code>true</code> on success. <code>false</code> if the input parameters are incorrect, for instance if X and Y define the same axis. Or if inR and outR don't have the same length.

Attributes

Remarks

Java documentation for android.hardware.SensorManager.remapCoordinateSystem(float[], int, int, 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)>