#[repr(C)]pub struct VrStereoConfig {
pub projection: [Matrix; 2],
pub viewOffset: [Matrix; 2],
pub leftLensCenter: [c_float; 2],
pub rightLensCenter: [c_float; 2],
pub leftScreenCenter: [c_float; 2],
pub rightScreenCenter: [c_float; 2],
pub scale: [c_float; 2],
pub scaleIn: [c_float; 2],
}
Expand description
VrStereoConfig, VR stereo rendering configuration for simulator
Fields§
§projection: [Matrix; 2]
VR projection matrices (per eye)
viewOffset: [Matrix; 2]
VR view offset matrices (per eye)
leftLensCenter: [c_float; 2]
VR left lens center
rightLensCenter: [c_float; 2]
VR right lens center
leftScreenCenter: [c_float; 2]
VR left screen center
rightScreenCenter: [c_float; 2]
VR right screen center
scale: [c_float; 2]
VR distortion scale
scaleIn: [c_float; 2]
VR distortion scale in
Trait Implementations§
Source§impl Clone for VrStereoConfig
impl Clone for VrStereoConfig
Source§fn clone(&self) -> VrStereoConfig
fn clone(&self) -> VrStereoConfig
Returns a duplicate 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 VrStereoConfig
impl Debug for VrStereoConfig
Source§impl From<VrStereoConfig> for VrStereoConfig
impl From<VrStereoConfig> for VrStereoConfig
Source§fn from(val: VrStereoConfig) -> Self
fn from(val: VrStereoConfig) -> Self
Converts to this type from the input type.
Source§impl From<VrStereoConfig> for VrStereoConfig
impl From<VrStereoConfig> for VrStereoConfig
Source§fn from(value: VrStereoConfig) -> Self
fn from(value: VrStereoConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VrStereoConfig
impl RefUnwindSafe for VrStereoConfig
impl Send for VrStereoConfig
impl Sync for VrStereoConfig
impl Unpin for VrStereoConfig
impl UnwindSafe for VrStereoConfig
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