Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lahdekorpi's full-sized avatar

Toni Lähdekorpi lahdekorpi

View GitHub Profile
@lahdekorpi
lahdekorpi / main.dart
Last active October 20, 2022 10:38
fov
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

Keybase proof

I hereby claim:

  • I am lahdekorpi on github.
  • I am lahdekorpi (https://keybase.io/lahdekorpi) on keybase.
  • I have a public key whose fingerprint is 372E E861 9B8F 0831 931A 711F B5D6 6234 B484 BE53

To claim this, I am signing this object: