public class GGOrientationSensor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getAzimuth()
Returns the current azimuth adapted to the
current device orientation (compass line bottom to top, positive clockwise).
|
int |
getDeviceAzimuth()
Returns the current pitch in a coordinate system fixed to the device
(independent of the device orientation).
|
int |
getDevicePitch()
Returns the current pitch in a coordinate system fixed to the device
(independent of the device orientation).
|
int |
getDeviceRoll()
Returns the current rool in a coordinate system fixed to the device
(independent of the device orientation).
|
int |
getPitch()
Returns the current pitch (forward tilt angle) adapted to the
current device orientation.
|
int |
getRoll()
Returns the current roll (left tilt angle) adapted to the
current device orientation.
|
static GGOrientationSensor |
init(android.app.Activity activity)
Initializes the orientation sensor for the given activity and
returns a GGOrientationSensor reference for the given activity.
|
public static GGOrientationSensor init(android.app.Activity activity)
public int getAzimuth()
public int getPitch()
public int getRoll()
public int getDeviceAzimuth()
public int getDevicePitch()
public int getDeviceRoll()