This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:math"; | |
void main() async { | |
print(cropFov(1.2299335238804041, 1920, 240)); | |
print(radianToDegree(cropFov(1.2299335238804041, 1920, 240))); | |
} | |
double cropFov( | |
double fov, // Field of view of the camera | |
int y, // Full height of the image in pixels |