getCameraDeviceRotate method
Implementation
double getCameraDeviceRotate() {
if (_getApplicableOrientation() == DeviceOrientation.landscapeLeft) {
return 270 * pi / 180;
} else if (_getApplicableOrientation() ==
DeviceOrientation.landscapeRight) {
return 90 * pi / 180;
} else if (_getApplicableOrientation() == DeviceOrientation.portraitDown) {
return 180 * pi / 180;
} else {
return 0 * pi / 180;
}
}