MCPcopy Create free account
hub / github.com/comaps/comaps / GetUV

Function GetUV

libs/drape_frontend/route_shape.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113glsl::vec2 GetUV(m2::RectF const & texRect, float normU, float normV)
114{
115 return glsl::vec2(texRect.minX() * (1.0f - normU) + texRect.maxX() * normU,
116 texRect.minY() * (1.0f - normV) + texRect.maxY() * normV);
117}
118
119glsl::vec2 GetUV(m2::RectF const & texRect, glsl::vec2 const & uv)
120{

Callers 2

GenerateArrowsTrianglesFunction · 0.85
PrepareArrowGeometryMethod · 0.85

Calls 5

vec2Class · 0.85
minXMethod · 0.80
maxXMethod · 0.80
minYMethod · 0.80
maxYMethod · 0.80

Tested by

no test coverage detected