MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ConvertNDCTo2DPosition

Function ConvertNDCTo2DPosition

TombEngine/Specific/trutils.cpp:218–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 Vector2 ConvertNDCTo2DPosition(const Vector2& ndc)
219 {
220 return Vector2(
221 ((ndc.x + 1.0f) * DISPLAY_SPACE_RES.x) / 2,
222 ((1.0f - ndc.y) * DISPLAY_SPACE_RES.y) / 2);
223 }
224
225 std::wstring GetBinaryPath(bool includeExeName)
226 {

Callers 1

Get2DPositionMethod · 0.85

Calls 1

Vector2Function · 0.50

Tested by

no test coverage detected