dinex86 / FOV-Calculator

A simple and lightweight 'Field of View' calculator for modern racing simulations.
https://dinex86.github.io/FOV-Calculator/
MIT License
56 stars 20 forks source link

Add support for curved monitors #11

Closed fredemmott closed 10 months ago

fredemmott commented 10 months ago

With option off, previous values are returned.

Fixes https://github.com/dinex86/FOV-Calculator/issues/9

I also replaced the trigonometry for width calculation with Pythagoras; this was mostly for debugging and seeing if I could simplify some of the math, but it should be slightly more efficient anyway so I left this change in.

This is a significant improvement for me on a Neo G9 at 75CM (49" 32:9 R1000), changing hFov from 77deg to 89deg; there's probably a matter of preference and just plain what people are used to, especially as - like flat monitors - the theoretically vFov changes left-to-right - but this gives people the option.