aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrstationaryreferencespace.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-04-04 14:50:23 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-04-04 14:50:23 -0700
commitd2e2b8da4da132390225ffc85adb8a33a1b36c13 (patch)
tree286b875466226f64aec70d05fa24a4bdeed7de43 /components/script/dom/xrstationaryreferencespace.rs
parentf1b82f8573d825a40e4fe0d32559b1acb169ac9c (diff)
downloadservo-d2e2b8da4da132390225ffc85adb8a33a1b36c13.tar.gz
servo-d2e2b8da4da132390225ffc85adb8a33a1b36c13.zip
Rename incorrectly-named get_pose methods
Diffstat (limited to 'components/script/dom/xrstationaryreferencespace.rs')
-rw-r--r--components/script/dom/xrstationaryreferencespace.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/xrstationaryreferencespace.rs b/components/script/dom/xrstationaryreferencespace.rs
index ddba9aaa20b..5a7a9c49e6d 100644
--- a/components/script/dom/xrstationaryreferencespace.rs
+++ b/components/script/dom/xrstationaryreferencespace.rs
@@ -50,10 +50,10 @@ impl XRStationaryReferenceSpace {
}
impl XRStationaryReferenceSpace {
- /// Gets pose represented by this space
+ /// Gets pose of the viewer with respect to this space
///
- /// Does not apply originOffset, use get_viewer_pose instead
- pub fn get_pose(&self, base_pose: &WebVRFrameData) -> RigidTransform3D<f64> {
+ /// Does not apply originOffset, use get_viewer_pose on XRReferenceSpace instead
+ pub fn get_unoffset_viewer_pose(&self, base_pose: &WebVRFrameData) -> RigidTransform3D<f64> {
// XXXManishearth add floor-level transform for floor-level and disable position in position-disabled
let pos = base_pose.pose.position.unwrap_or([0., 0., 0.]);
let translation = Vector3D::new(pos[0] as f64, pos[1] as f64, pos[2] as f64);