Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -30,6 +30,10 @@ glm::vec2 HMDScriptingInterface::overlayFromWorldPoint(const glm::vec3& position · 29 unmodified lines | ||
| 30 | 30 | return qApp->getApplicationCompositor().overlayFromSphereSurface(position); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | +glm::vec3 HMDScriptingInterface::worldPointFromOverlay(const glm::vec2& overlay) const { | |
| 34 | + return qApp->getApplicationCompositor().sphereSurfaceFromOverlay(overlay); | |
| 35 | +} | |
| 36 | + | |
| 33 | 37 | glm::vec2 HMDScriptingInterface::sphericalToOverlay(const glm::vec2 & position) const { |
| 34 | 38 | return qApp->getApplicationCompositor().sphericalToOverlay(position); |
| 35 | 39 | } |