Video Viewing Policy - NBC.com 3+ Similar Pages Found
Video Viewing Policy - NBC.com
WWW.NBC.COM
Powered by the People!
Viewing is the act of looking at something. It can refer to watching a movie, television show, or other visual media, or looking at an artwork in a museum or gallery. Viewing can also refer to looking at a website or other digital media.
_angle_x
self.viewing_angle_y = self.viewing_angle_x * self.aspect_ratio
def set_resolution(self, resolution):
"""Set the camera resolution (in pixels).
:param resolution: The camera resolution (in pixels).
:type resolution: tuple of int
"""
self.resolution = resolution
self.aspect_ratio = float(resolution[0]) / float(resolution[1])
def set_fov(self, fov):
"""Set the camera field of view (in degrees).
:param fov: The camera field of view (in degrees).
:type fov: float
"""
self.viewing_angle_x = math.radians(fov)
self.viewing_angle_y = math.radians(fov * self.aspect_ratio)
Password Copied!