Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DNA-Rendering/DNA-Rendering
/ fov2focal
Function
fov2focal
scripts/3DGS/utils/graphics_utils.py:96–97 ·
view source on GitHub ↗
(fov, pixels)
Source
from the content-addressed store, hash-verified
94
return
P
95
96
def
fov2focal(fov, pixels):
97
return
pixels / (2 * math.tan(fov / 2))
98
99
def
focal2fov(focal, pixels):
100
return
2*math.atan(pixels/(2*focal))
Callers
2
readCamerasFromTransforms
Function · 0.90
camera_to_JSON
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected