aboutsummaryrefslogtreecommitdiffstats
path: root/support/magicleap/Servo2D/code/inc
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-08-12 11:26:46 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-08-12 11:26:46 -0500
commit4709a3061d96d661040e56b9af3035493bdc8793 (patch)
tree610a7777330a882b4ee5e8f220784405108f7d4c /support/magicleap/Servo2D/code/inc
parent9b4b02275e52330538acba9248457a07b680d967 (diff)
downloadservo-4709a3061d96d661040e56b9af3035493bdc8793.tar.gz
servo-4709a3061d96d661040e56b9af3035493bdc8793.zip
Use the built-in laser pointer for magicleap
Diffstat (limited to 'support/magicleap/Servo2D/code/inc')
-rw-r--r--support/magicleap/Servo2D/code/inc/Servo2D.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/support/magicleap/Servo2D/code/inc/Servo2D.h b/support/magicleap/Servo2D/code/inc/Servo2D.h
index 2c1e0c8fd9a..46962855dfe 100644
--- a/support/magicleap/Servo2D/code/inc/Servo2D.h
+++ b/support/magicleap/Servo2D/code/inc/Servo2D.h
@@ -124,9 +124,10 @@ protected:
bool pointInsideViewport(glm::vec2 pt);
/**
- * Redraw the laser. Returns the laser endpoint, in viewport coordinates.
+ * Returns the intersection of the laser and the viewport, in viewport coordinates.
+ * Returns (-1, -1) if the laser does not intersect the viewport.
*/
- glm::vec2 redrawLaser();
+ glm::vec2 laserPosition();
private:
lumin::Prism* prism_ = nullptr; // represents the bounded space where the App renders.