21#ifndef VLC_VIEWPOINT_H_
22#define VLC_VIEWPOINT_H_ 1
33#define FIELD_OF_VIEW_DEGREES_DEFAULT 80.f
34#define FIELD_OF_VIEW_DEGREES_MAX 150.f
35#define FIELD_OF_VIEW_DEGREES_MIN 20.f
55 p_vp->
yaw = fmodf( p_vp->
yaw, 360.f );
57 p_vp->
roll = fmodf( p_vp->
roll, 360.f );
#define VLC_API
Definition fourcc_gen.c:31
#define VLC_CLIP(v, min, max)
Definition vlc_common.h:532
Viewpoints.
Definition vlc_viewpoint.h:41
float pitch
Definition vlc_viewpoint.h:43
float yaw
Definition vlc_viewpoint.h:42
float fov
Definition vlc_viewpoint.h:45
float roll
Definition vlc_viewpoint.h:44
This file is a collection of common definitions and types.
#define FIELD_OF_VIEW_DEGREES_MIN
Definition vlc_viewpoint.h:36
static void vlc_viewpoint_init(vlc_viewpoint_t *p_vp)
Definition vlc_viewpoint.h:48
void vlc_viewpoint_to_4x4(const vlc_viewpoint_t *vp, float *matrix)
Generate the 4x4 transform matrix corresponding to a viewpoint.
Definition viewpoint.c:30
static void vlc_viewpoint_clip(vlc_viewpoint_t *p_vp)
Definition vlc_viewpoint.h:54
#define FIELD_OF_VIEW_DEGREES_MAX
Definition vlc_viewpoint.h:35
#define FIELD_OF_VIEW_DEGREES_DEFAULT
Definition vlc_viewpoint.h:34