Orientation Helper
Utility class to determine the orientation of the camera sensor respect to current device orientation. Determining such orientation is useful for Augmented Reality applications, where a pinhole camera needs to be estimated taking into account such orientation.
See also
Properties
Functions
Converts camera from Android view coordinates to OpenGL coordinates.
Creates the rotation required to convert from Android view coordinates to OpenGL coordinates.
Creates 2D transformation to convert 2D point coordinates from Android view coordinates to OpenGL coordinates.
Gets orientation of camera sensor. Camera sensor orientation is computed in terms of device orientation.
Gets clockwise orientation of camera sensor respect to display orientation.
Converts camera from OpenGL coordinates to Android view coordinates.
Creates the rotation required to convert from OpenGL coordinates to Android view coordinates.
Creates 2D transformation to convert 2D point coordinates from OpenGL coordinates to Android view coordinates.
Transforms camera using provided 2D transformation.