Struct webxr_api::ViewerPose
source · pub struct ViewerPose {
pub transform: RigidTransform3D<f32, Viewer, Native>,
pub views: Views,
}
Fields§
§transform: RigidTransform3D<f32, Viewer, Native>
The transform from the viewer to native coordinates
This is equivalent to the pose of the viewer in native coordinates. This is the inverse of the view matrix.
views: Views
Trait Implementations§
source§impl Clone for ViewerPose
impl Clone for ViewerPose
source§fn clone(&self) -> ViewerPose
fn clone(&self) -> ViewerPose
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 ViewerPose
impl Debug for ViewerPose
source§impl<'de> Deserialize<'de> for ViewerPose
impl<'de> Deserialize<'de> for ViewerPose
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 Freeze for ViewerPose
impl RefUnwindSafe for ViewerPose
impl Send for ViewerPose
impl Sync for ViewerPose
impl Unpin for ViewerPose
impl UnwindSafe for ViewerPose
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