Struct QtmCalibrationData

Source
#[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: f32

Neutral (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

Source§

fn clone(&self) -> QtmCalibrationData

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QtmCalibrationData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QtmCalibrationData

Source§

fn default() -> QtmCalibrationData

Returns the “default value” for a type. Read more
Source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.