aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrspace.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/xrspace.rs
parentf1b82f8573d825a40e4fe0d32559b1acb169ac9c (diff)
downloadservo-d2e2b8da4da132390225ffc85adb8a33a1b36c13.tar.gz
servo-d2e2b8da4da132390225ffc85adb8a33a1b36c13.zip
Rename incorrectly-named get_pose methods
Diffstat (limited to 'components/script/dom/xrspace.rs')
-rw-r--r--components/script/dom/xrspace.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/xrspace.rs b/components/script/dom/xrspace.rs
index 60589be4054..8bc62ae5d9e 100644
--- a/components/script/dom/xrspace.rs
+++ b/components/script/dom/xrspace.rs
@@ -39,7 +39,7 @@ impl XRSpace {
}
impl XRSpace {
- /// Gets viewer pose represented by this space
+ /// Gets pose of the viewer with respect to this space
#[allow(unused)]
pub fn get_viewer_pose(&self, base_pose: &WebVRFrameData) -> RigidTransform3D<f64> {
if let Some(reference) = self.downcast::<XRReferenceSpace>() {
@@ -51,7 +51,9 @@ impl XRSpace {
/// Gets pose represented by this space
///
- /// Does not apply originOffset, use get_viewer_pose instead if you need it
+ /// The reference origin used is common between all
+ /// get_pose calls for spaces from the same device, so this can be used to compare
+ /// with other spaces
#[allow(unused)]
pub fn get_pose(&self, base_pose: &WebVRFrameData) -> RigidTransform3D<f64> {
if let Some(reference) = self.downcast::<XRReferenceSpace>() {