Monado OpenXR Runtime
Macros | Functions
m_optics.c File Reference

Functions related to field-of-view. More...

#include "math/m_api.h"
#include "util/u_debug.h"
#include <math.h>
#include <stdio.h>
#include <assert.h>
Include dependency graph for m_optics.c:

Macros

#define METERS_FORMAT   "%0.4fm"
 
#define DEG_FORMAT   "%0.1f deg"
 

Functions

bool math_compute_fovs (double w_total, double w_1, double horizfov_total, double h_total, double h_1, double vertfov_total, struct xrt_fov *fov)
 Perform the computations from "Computing Half-Fields-Of-View from Simpler Display Models", to get half-FOVs from things we can retrieve from other APIs. More...
 

Detailed Description

Functions related to field-of-view.

Author
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om

Macro Definition Documentation

◆ DEG_FORMAT

#define DEG_FORMAT   "%0.1f deg"

◆ METERS_FORMAT

#define METERS_FORMAT   "%0.4fm"