#[repr(C)]pub struct QtmCalibrationData {
pub centerBarrierPosition: f32,
pub translationX: f32,
pub translationY: f32,
pub rotationZ: f32,
pub fovX: f32,
pub viewingDistance: f32,
}Expand description
QTM calibration data (fully enabled/SS3D disabled) in cfg. Usually all-zero on N2DSXL.
Fields§
§centerBarrierPosition: f32Neutral (center) barrier position/offset (with slit width of 6 units), when the user is facing directly facing the camera, that is to say, their eye midpoint normalized X coord in the camera’s plane is 0, assuming the user’s head is located at the expected viewing distance and at the expected eye-to-camera angle (as per the rest of this structure). This is expressed in terms of iod/12 units modulo iod/12 (thus, range is 0 to 11 included), with IOD (interocular distance) assumed to be 62mm.
Note: This field is floating-point for QTM auto-adjustment purposes, however the actual barrier position in hardware is an integer. Note: This is the field that System Settings lets you add -1.0 to +1.0 to. Note: Moreover, this field can be directly changed through QTMS_SetCenterBarrierPosition.
translationX: f32< Lens X coord in inner camera space? Very low value and seems to be unused.
translationY: f32< Lens Y coord in inner camera space? Very low value and seems to be unused.
rotationZ: f32< Optimal eye-to-camera angle, in radians, without accounting for lens distortion.
fovX: f32< Camera’s horizontal FoV in degrees, without accounting for lens distortion.
viewingDistance: f32< Optimal viewing distance between user and top screen, assuming iod to be 62mm.
Trait Implementations§
Source§impl Clone for QtmCalibrationData
impl Clone for QtmCalibrationData
Source§fn clone(&self) -> QtmCalibrationData
fn clone(&self) -> QtmCalibrationData
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QtmCalibrationData
impl Debug for QtmCalibrationData
Source§impl Default for QtmCalibrationData
impl Default for QtmCalibrationData
Source§fn default() -> QtmCalibrationData
fn default() -> QtmCalibrationData
impl Copy for QtmCalibrationData
Auto Trait Implementations§
impl Freeze for QtmCalibrationData
impl RefUnwindSafe for QtmCalibrationData
impl Send for QtmCalibrationData
impl Sync for QtmCalibrationData
impl Unpin for QtmCalibrationData
impl UnwindSafe for QtmCalibrationData
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)