Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/ceguilua/ceguilua-0.5.0/package/CoordConverter.pkg @ 5738

Last change on this file since 5738 was 5738, checked in by landauf, 15 years ago

merged libraries2 back to trunk

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/***********************************************************************
2    CoordConverter utility class
3***********************************************************************/
4class 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};
Note: See TracBrowser for help on using the repository browser.