Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tan of Field of view

I would like to know what does the tan angle of field of view does. I have seen the following line of code which I'm trying to better understand,

float fovLeft = Mathf.Tan(-outerFieldOfView * Math.PI / 180);
float fovTop = Mathf.Tan(-upperFieldOfView * Math.PI / 180);
float fovRight = Mathf.Tan(-innerFieldOfView * Math.PI / 180);
float fovBottom = Mathf.Tan(-lowerFieldOfView * Math.PI / 180);

whereas outerFieldOfView is in degrees towards the side of the screen. I suppose that it is used to find the angle of view. is my understanding right? what exactly the tan of the field of view refer to?

like image 384
user1241241 Avatar asked Dec 21 '25 18:12

user1241241


1 Answers

Following what parameters you know, the tangent could give the angle or deep or size of FOV:

to have a better knowledge of trigonometric begin HERE

enter image description here

like image 56
Frenchy Avatar answered Dec 24 '25 09:12

Frenchy