MCPcopy Create free account
hub / github.com/MyGUI/mygui / convertToRelativeD

Function convertToRelativeD

MyGUIEngine/include/MyGUI_CoordConverter.h:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 static DoubleCoord convertToRelativeD(const IntCoord& _coord, const IntSize& _view)
91 {
92 return {
93 _coord.left / (double)_view.width,
94 _coord.top / (double)_view.height,
95 _coord.width / (double)_view.width,
96 _coord.height / (double)_view.height};
97 }
98 };
99
100} // namespace MyGUI

Callers 1

positionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected