Function Renderer.windowToLogical

Wraps SDL_RenderWindowToLogical (from SDL 2.0.18) which maps window coordinates to logical coordinates

float[2] windowToLogical (
  int[2] xy
) @trusted const;

Parameters

NameDescription
xy int[2] window coordinate of X and Y

Returns

mapped float[2] logical coordinate of X and Y