Firing multiple Raycasts in a field of view

Hi,

I belive I posted this in the right area, so let me know if I haven’t.

So I’m having trouble trying to fire multiple rays which are inside of an adjustable field of view area. I’m having trouble with the maths side of everything.

What I want is no matter how many Raycast I have, they should be spread out within the field of view area equally.

Any help would be appreciated

Hey there,
this has been shown by Sebastian Lague in great detail and beauty on his youtube channel
Particularly interesting for you should be the part at 1:44