to View Coordinates Camera
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Parameters
Android context.
A camera id.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Parameters
Android context.
Information about the camera.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Parameters
amount of rotation between display and camera sensor. CameraToDisplayOrientation.ORIENTATION_UNKNOWN indicates that orientation is unknown and must be ignored (Y coordinates are not reversed either).
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Parameters
Android context.
A camera id.
point to use as pivot for rotation.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Parameters
Android context.
Information about the camera.
point to use as pivot for rotation.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Parameters
amount of rotation between display and camera sensor. CameraToDisplayOrientation.ORIENTATION_UNKNOWN indicates that orientation is unknown and must be ignored (Y coordinates are not reversed either).
point to use as pivot for rotation.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
point to use as pivot for rotation.
camera to be transformed.
instance where transformed camera will be stored.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Return
transformed camera.
Parameters
Android context.
A camera id.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Return
transformed camera.
Parameters
Android context.
Information about the camera.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Return
transformed camera.
Parameters
amount of rotation between display and camera sensor. CameraToDisplayOrientation.ORIENTATION_UNKNOWN indicates that orientation is unknown and must be ignored (Y coordinates are not reversed either).
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Return
transformed camera.
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Return
transformed camera.
Parameters
Android context.
A camera id.
point to use as pivot for rotation.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
This method takes into account current display and camera orientation.
Return
transformed camera.
Parameters
Android context.
Information about the camera.
point to use as pivot for rotation.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Return
transformed camera.
Parameters
amount of rotation between display and camera sensor. CameraToDisplayOrientation.ORIENTATION_UNKNOWN indicates that orientation is unknown and must be ignored (Y coordinates are not reversed either).
point to use as pivot for rotation.
camera to be transformed.
Converts camera from OpenGL coordinates to Android view coordinates.
It must be noticed that OpenGL uses a right handed coordinate system where y coordinates increase upwards, whereas Android uses y coordinates that increase downwards and takes into account screen and camera sensor orientation.
Return
transformed camera.
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
point to use as pivot for rotation.
camera to be transformed.