#[repr(C)]pub struct QarAppVolumeSize {
pub width_meters: f32,
pub length_meters: f32,
pub height_meters: f32,
}Expand description
@brief The three frames every app volume API is expressed in.
An app volume is a cuboid placed in the room that reserves the region a remote 3D application renders into.
Room space is the session’s shared tracking space: right-handed, metres, +Y up. QarAppVolumeInit::pose, qar_app_volumes_change_pose() and qar_app_volume_get_pose() are given in it.
App volume space is the frame that pose defines. Its origin is the centre of the cuboid - not a corner, and not a point on the floor - and its axes are right-handed, laid out so that an unrotated volume stands upright in the room:
- +X spans width_meters,
- +Y spans height_meters and points up,
- +Z spans length_meters, the horizontal depth. The cuboid therefore covers x in [-width_meters/2, +width_meters/2], y in [-height_meters/2, +height_meters/2] and z in [-length_meters/2, +length_meters/2].
App content space is the coordinate system of the application rendering into the volume. QarAppVolumeInit::app_pose and qar_app_volumes_change_app_pose() place that application’s origin inside app volume space, in volume metres; QarAppVolumeInit::app_scale converts app metres into volume metres. Nothing clips the application to the cuboid - the volume states where the app is meant to be, and gestures and layout are derived from it.
Fields§
§width_meters: f32Cuboid extent along app-volume-space X, in metres.
length_meters: f32Cuboid extent along app-volume-space Z - the horizontal depth - in metres.
height_meters: f32Cuboid extent along app-volume-space Y - the vertical rise - in metres.