diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xas/spatial.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/include/xas/spatial.h b/include/xas/spatial.h index 5c706d0..e888f7b 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -12,33 +12,17 @@ typedef struct _xas_spatial_coord { float x, y, z; } xas_spatial_coord; -typedef struct _xas_spatial_rotation { - union { - float x; - float pitch; - }; - - union { - float y; - float roll; - }; - - union { - float z; - float yaw; - }; -} xas_spatial_rotation; - typedef struct _xas_spatial_cone { - xas_spatial_coord coord; - xas_spatial_rotation rotation; + xas_spatial_coord coord, + rotation; float angle; } xas_spatial_cone; typedef struct _xas_spatial_observer { - xas_spatial_coord coord; - xas_spatial_rotation rotation; + xas_spatial_coord coord, + rotation; + float width; } xas_spatial_observer; @@ -89,7 +73,7 @@ void xas_spatial_scene_destroy(xas_spatial_scene *scene); void xas_spatial_scene_set_observer(xas_spatial_scene *scene, xas_spatial_coord coord, - xas_spatial_rotation rotation, + xas_spatial_coord rotation, float width); void xas_spatial_scene_set_speaker_coords(xas_spatial_scene *scene, |