(
    fisheye62: pygeometry.Camera,
)
return camera
Create a perspective camera from a fisheye extended.
Create a perspective camera from a fisheye extended.
Create a perspective camera from a fisheye extended .
def perspective_camera_from_fisheye62(
    fisheye62: pygeometry.Camera,
) -> pygeometry.Camera:
    """Create a perspective camera from a fisheye extended."""
    camera = pygeometry.Camera.create_perspective(
        fisheye62.focal * (1 + fisheye62.aspect_ratio) / 2.0, 0.0, 0.0
    )
    camera.id = fisheye62.id
    camera.width = fisheye62.width
    camera.height = fisheye62.height
    return camera
def perspective_camera_from_fisheye62 ( fisheye62 : pygeometry . Camera , ) -> pygeometry . Camera : camera = pygeometry . Camera . create_perspective ( fisheye62 . focal * ( 1 + fisheye62 . aspect_ratio ) / 2.0 , 0.0 , 0.0 ) camera . id = fisheye62 . id camera . width = fisheye62 . width camera . height = fisheye62 . height return camera