![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IHeadingDevice interface.
To receive data the device must be activated by IAppConfiguration::SetHeadingActive().
Get the geomagnetic field for the x-axis in microteslas.
Number GetMagneticFieldX()
Get the geomagnetic field for the y-axis in microteslas.
Number GetMagneticFieldY()
Get the geomagnetic field for the z-axis in microteslas.
Number GetMagneticFieldZ()
Get the geomagnetic field axes in microteslas.
Murl.Math.Vector GetMagneticField()
Get the angle relative to the magnetic north in degrees. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on.
Number GetMagneticAngle()
Get the angle relative to the true north in degrees. The value 0 means the device is pointed toward true north, 90 means it is pointed east, 180 means it is pointed south, and so on.
Number GetTrueAngle()
Get the raw geomagnetic field axes in microteslas. This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.
Murl.Math.Vector GetRawMagneticField()
Get the raw angle relative to the magnetic north in degrees. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on.
This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.
Number GetRawMagneticAngle()
Get the raw angle relative to the true north in degrees. The value 0 means the device is pointed toward true north, 90 means it is pointed east, 180 means it is pointed south, and so on.
This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.
Number GetRawTrueAngle()