@@ -137,9 +137,9 @@ bool getWindowResizable();
137137
138138// Get world geometry corresponding to a screen pixel (e.g. from a mouse click)
139139glm::vec3 screenCoordsToWorldRay (glm::vec2 screenCoords);
140- glm::vec3 bufferCoordsToWorldRay ( int xPos, int yPos );
140+ glm::vec3 bufferIndsToWorldRay (glm::ivec2 bufferInds );
141141glm::vec3 screenCoordsToWorldPosition (glm::vec2 screenCoords); // queries the depth buffer to get full position
142- glm::vec3 bufferCoordsToWorldPosition ( int xPos, int yPos);
142+ glm::vec3 bufferIndsToWorldPosition (glm::ivec2 bufferInds);
143143
144144// Get and set camera from json string
145145std::string getViewAsJson ();
@@ -151,7 +151,9 @@ void setCameraFromJson(std::string jsonData, bool flyTo);
151151std::string to_string (ProjectionMode mode);
152152std::string to_string (NavigateStyle style);
153153std::tuple<int , int > screenCoordsToBufferInds (glm::vec2 screenCoords);
154+ glm::ivec2 screenCoordsToBufferIndsVec (glm::vec2 screenCoords);
154155glm::vec2 bufferIndsToScreenCoords (int xPos, int yPos);
156+ glm::vec2 bufferIndsToScreenCoords (glm::ivec2 bufferInds);
155157
156158// == Internal helpers. Should probably not be called in user code.
157159
@@ -177,6 +179,10 @@ void processClipPlaneShift(double amount);
177179void processZoom (double amount);
178180void processKeyboardNavigation (ImGuiIO& io);
179181
182+ // deprecated, bad names, see variants above
183+ glm::vec3 bufferCoordsToWorldRay (glm::vec2 bufferCoords);
184+ glm::vec3 bufferCoordsToWorldPosition (int xPos, int yPos);
185+
180186
181187} // namespace view
182188} // namespace polyscope
0 commit comments