20 #ifndef ANTKEEPER_GAME_AUTOFOCUS_COMPONENT_HPP
21 #define ANTKEEPER_GAME_AUTOFOCUS_COMPONENT_HPP
constexpr T radians(T degrees) noexcept
Converts an angle given in degrees to radians.
Modulates a camera's field of view and spring arm length.
double far_hfov
Horizontal FoV at minimum zoom.
double vfov
Vertical FoV of the camera, in radians.
double near_focal_plane_height
Height of the focal plane at maximum zoom.
math::dvec3 focal_point_offset
Position of the focal point, relative to the subject.
math::dvec2 focal_plane_size
Dimensions of the focal plane.
double near_hfov
Horizontal FoV at maximum zoom.
double zoom
Zoom factor, on [0, 1].
double hfov
Horizontal FoV of the camera, in radians.
double far_focal_plane_height
Height of the focal plane at minimum zoom.