Update Renderer.cs

Rework how coordinates are calculated.