pub struct View<Eye> {
pub transform: RigidTransform3D<f32, Eye, Native>,
pub projection: Transform3D<f32, Eye, Display>,
}
Expand description
For each eye, the pose of that eye,
its projection onto its display.
For stereo displays, we have a View<LeftEye>
and a View<RightEye>
.
For mono displays, we hagve a View<Viewer>
https://immersive-web.github.io/webxr/#xrview
Fields§
§transform: RigidTransform3D<f32, Eye, Native>
§projection: Transform3D<f32, Eye, Display>
Implementations§
Trait Implementations§
source§impl<'de, Eye> Deserialize<'de> for View<Eye>where
Eye: Deserialize<'de>,
impl<'de, Eye> Deserialize<'de> for View<Eye>where
Eye: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Eye> Freeze for View<Eye>
impl<Eye> RefUnwindSafe for View<Eye>where
Eye: RefUnwindSafe,
impl<Eye> Send for View<Eye>where
Eye: Send,
impl<Eye> Sync for View<Eye>where
Eye: Sync,
impl<Eye> Unpin for View<Eye>where
Eye: Unpin,
impl<Eye> UnwindSafe for View<Eye>where
Eye: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)