39 uint32_t width, uint32_t height,
float fov_degrees)
noexcept {
40 const double w =
static_cast<double>(width);
41 const double h =
static_cast<double>(height);
42 const double fov_rad =
static_cast<double>(fov_degrees) * M_PI / 360.0;
43 const double fx = w / (2.0 * std::tan(fov_rad));
44 return {fx, fx, w / 2.0, h / 2.0};