diff options
author | XANTRONIX Development | 2022-02-21 19:15:22 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-21 19:15:22 -0500 |
commit | 8a3be441021b006c5e913141daf9c20b8ade9450 (patch) | |
tree | 902492416b1718b8ae11b02579006e14f11f34d0 /include/xas | |
parent | 8fa45711501f308a98b2a5ac34cc51f041ab9ad5 (diff) | |
download | xas-8a3be441021b006c5e913141daf9c20b8ade9450.tar.gz xas-8a3be441021b006c5e913141daf9c20b8ade9450.tar.bz2 xas-8a3be441021b006c5e913141daf9c20b8ade9450.zip |
cats,,,
Diffstat (limited to 'include/xas')
-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, |