From 8a3be441021b006c5e913141daf9c20b8ade9450 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 21 Feb 2022 19:15:22 -0500 Subject: cats,,, --- include/xas/spatial.h | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'include/xas') 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, -- cgit v1.2.3