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

Function getUVFromPositionInsideRect

MyGUIEngine/src/MyGUI_GeometryUtility.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 FloatPoint getUVFromPositionInsideRect(
105 const FloatPoint& _point,
106 const FloatPoint& _v0,
107 const FloatPoint& _v1,
108 const FloatPoint& _baseUV)
109 {
110 return {
111 _baseUV.left + _point.left * _v0.left + _point.top * _v1.left,
112 _baseUV.top + _point.left * _v0.top + _point.top * _v1.top};
113 }
114
115} // namespace MyGUI

Callers 2

_rebuildGeometryMethod · 0.85
_rebuildGeometryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected