[2608] | 1 | /*********************************************************************** |
---|
| 2 | CoordConverter utility class |
---|
| 3 | ***********************************************************************/ |
---|
| 4 | class CoordConverter |
---|
| 5 | { |
---|
| 6 | static float windowToScreenX(const Window& window, const UDim& x); |
---|
| 7 | static float windowToScreenX(const Window& window, const float x); |
---|
| 8 | |
---|
| 9 | static float windowToScreenY(const Window& window, const UDim& y); |
---|
| 10 | static float windowToScreenY(const Window& window, const float y); |
---|
| 11 | |
---|
| 12 | static Vector2 windowToScreen(const Window& window, const UVector2& vec); |
---|
| 13 | static Vector2 windowToScreen(const Window& window, const Vector2& vec); |
---|
| 14 | |
---|
| 15 | static Rect windowToScreen(const Window& window, const URect& rect); |
---|
| 16 | static Rect windowToScreen(const Window& window, const Rect& rect); |
---|
| 17 | |
---|
| 18 | static float screenToWindowX(const Window& window, const UDim& x); |
---|
| 19 | static float screenToWindowX(const Window& window, const float x); |
---|
| 20 | |
---|
| 21 | static float screenToWindowY(const Window& window, const UDim& y); |
---|
| 22 | static float screenToWindowY(const Window& window, const float y); |
---|
| 23 | |
---|
| 24 | static Vector2 screenToWindow(const Window& window, const UVector2& vec); |
---|
| 25 | static Vector2 screenToWindow(const Window& window, const Vector2& vec); |
---|
| 26 | |
---|
| 27 | static Rect screenToWindow(const Window& window, const URect& rect); |
---|
| 28 | static Rect screenToWindow(const Window& window, const Rect& rect); |
---|
| 29 | |
---|
| 30 | }; |
---|