#[repr(C)]pub struct VrDeviceInfo {
pub hResolution: c_int,
pub vResolution: c_int,
pub hScreenSize: c_float,
pub vScreenSize: c_float,
pub vScreenCenter: c_float,
pub eyeToScreenDistance: c_float,
pub lensSeparationDistance: c_float,
pub interpupillaryDistance: c_float,
pub lensDistortionValues: [c_float; 4],
pub chromaAbCorrection: [c_float; 4],
}
Expand description
VrDeviceInfo, Head-Mounted-Display device parameters
Fields§
§hResolution: c_int
Horizontal resolution in pixels
vResolution: c_int
Vertical resolution in pixels
hScreenSize: c_float
Horizontal size in meters
vScreenSize: c_float
Vertical size in meters
vScreenCenter: c_float
Screen center in meters
eyeToScreenDistance: c_float
Distance between eye and display in meters
lensSeparationDistance: c_float
Lens separation distance in meters
interpupillaryDistance: c_float
IPD (distance between pupils) in meters
lensDistortionValues: [c_float; 4]
Lens distortion constant parameters
chromaAbCorrection: [c_float; 4]
Chromatic aberration correction parameters
Trait Implementations§
Source§impl Clone for VrDeviceInfo
impl Clone for VrDeviceInfo
Source§fn clone(&self) -> VrDeviceInfo
fn clone(&self) -> VrDeviceInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VrDeviceInfo
impl Debug for VrDeviceInfo
Source§impl From<VrDeviceInfo> for VrDeviceInfo
impl From<VrDeviceInfo> for VrDeviceInfo
Source§fn from(val: VrDeviceInfo) -> Self
fn from(val: VrDeviceInfo) -> Self
Converts to this type from the input type.
Source§impl From<VrDeviceInfo> for VrDeviceInfo
impl From<VrDeviceInfo> for VrDeviceInfo
Source§fn from(value: VrDeviceInfo) -> Self
fn from(value: VrDeviceInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VrDeviceInfo
impl RefUnwindSafe for VrDeviceInfo
impl Send for VrDeviceInfo
impl Sync for VrDeviceInfo
impl Unpin for VrDeviceInfo
impl UnwindSafe for VrDeviceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more