OrientationSensor

Overview

The OrientationSensor interface of the the Sensor APIs is the base class for orientation sensors. This interface cannot be used directly. Instead it provides properties and methods accessed by interfaces that inherit from it.

Location


Properties


quaternion

 

property quaternion: dynamic read write;

 

dynamic quaternion { get; set; }

 

var quaternion: dynamic { get{} set{} }

 

dynamic quaternion { __get; __set; }

 

Property quaternion() As dynamic

Required Methods


populateMatrix

Populates the given object with the rotation matrix based on the latest sensor reading. The rotation maxtrix is shown below.

 

method populateMatrix(partargetMatrix: dynamic): dynamic

 

dynamic populateMatrix(dynamic partargetMatrix)

 

func populateMatrix(_ partargetMatrix: dynamic) -> dynamic

 

dynamic populateMatrix(dynamic partargetMatrix)

 

Function populateMatrix(partargetMatrix As dynamic) As dynamic

Parameters:

  • partargetMatrix: