Closed jlnprssnr closed 4 years ago
Hi,
I've had ago at this. Though I'm learning as I go.
Doesn't it already calculate based on monitor width? Like this:
var width = Math.cos(Math.atan(y/x)) * screensizeDiagonal;
Anyway I have it working as far as I understand it in my fork. If you'd like to test it then i could have a go at getting it merged? Thanks.
That's the panel width, not the monitor width. With triples you have to take into account the full width of the monitor, otherwise the angle is wrong. See the link I posted above :)
Oh I gotcha FullDeviceWidth. I will have to add an option for bezel width.
I've fixed it. I'm not sure dinex86 is around though we will see. https://groybe.github.io/FOV-Calculator/
Merged.
Thanks!! I learned a bunch off your code. The new spacings of the results looks great!
I see that you calculate the angle of triple screens in the code, but don't display this. As your calulated FoV is only correct for the mathematically correct triple angles (Which many don't know and just default to 45°), you should also display those alongside. Also, shouldn't the full width of the monitor be used for this, instead of the display area? At least according to this.