to View Coordinates Transformation
Creates 2D transformation to convert 2D point coordinates 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 intrinsic parameters.
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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 intrinsic parameters.
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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 intrinsic parameters.
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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 intrinsic parameters.
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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.
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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
instance where computed transformation will be stored.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
Parameters
Android context.
A camera id.
camera intrinsic parameters.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
Parameters
Android context.
Information about the camera.
camera intrinsic parameters.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
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 intrinsic parameters.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation or the identity if rotation is null
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
camera intrinsic parameters.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
Parameters
Android context.
A camera id.
point to use as pivot for rotation.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
Parameters
Android context.
Information about the camera.
point to use as pivot for rotation.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
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.
Creates 2D transformation to convert 2D point coordinates 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
2D transformation.
Parameters
counter-clockwise rotation indicating the amount of display rotation respect the camera sensor.
point to use as pivot for rotation.