diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-08-12 11:26:46 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-08-12 11:26:46 -0500 |
commit | 4709a3061d96d661040e56b9af3035493bdc8793 (patch) | |
tree | 610a7777330a882b4ee5e8f220784405108f7d4c /support/magicleap/Servo2D/code/inc | |
parent | 9b4b02275e52330538acba9248457a07b680d967 (diff) | |
download | servo-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.h | 5 |
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. |