(fovX, videoWidth)
| 23 | }; |
| 24 | |
| 25 | export const fovXToFx = (fovX, videoWidth) => { |
| 26 | return videoWidth / (2 * Math.tan(fovX / 2 * Math.PI / 180)); |
| 27 | } |
| 28 | |
| 29 | export const fovYToFy = (fovY, videoHeight) => { |
| 30 | return videoHeight / (2 * Math.tan(fovY / 2 * Math.PI / 180)); |
no outgoing calls
no test coverage detected