Add XRRay(transform) constructor

This commit is contained in:
Manish Goregaokar 2020-04-08 16:34:22 -07:00
parent 977b36d855
commit e7ba4e5a47
3 changed files with 16 additions and 5 deletions

View file

@ -47,8 +47,8 @@ use std::f64::consts::{FRAC_PI_2, PI};
use std::mem;
use std::rc::Rc;
use webxr_api::{
self, util, Display, EnvironmentBlendMode, Event as XREvent, Frame, SelectEvent, SelectKind,
Session, SessionId, View, Viewer, Visibility,
self, util, ApiSpace, Display, EnvironmentBlendMode, Event as XREvent, Frame, SelectEvent,
SelectKind, Session, SessionId, View, Viewer, Visibility,
};
#[dom_struct]
@ -711,8 +711,6 @@ impl XRSessionMethods for XRSession {
}
}
#[derive(Clone, Copy, Debug)]
pub struct ApiSpace;
// The pose of an object in native-space. Should never be exposed.
pub type ApiPose = RigidTransform3D<f32, ApiSpace, webxr_api::Native>;
// The pose of the viewer in some api-space.