Android.Hardware.SensorManager.GetQuaternionFromVector Method
Helper function to convert a rotation vector to a normalized quaternion.

Syntax

[Android.Runtime.Register("getQuaternionFromVector", "([F[F)V", "")]
public static void GetQuaternionFromVector (float[] Q, float[] rv)

Parameters

Q
an array of floats in which to store the computed quaternion
rv
the rotation vector to convert

Remarks

Helper function to convert a rotation vector to a normalized quaternion. Given a rotation vector (presumably from a ROTATION_VECTOR sensor), returns a normalized quaternion in the array Q. The quaternion is stored as [w, x, y, z]

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9