MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / ScreenToWorld

Method ScreenToWorld

extensions/olcPGEX_TransformedView.h:357–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 olc::vf2d TransformedView::ScreenToWorld(const olc::vf2d& vScreenPos) const
358 {
359 return (olc::vf2d(vScreenPos) / m_vWorldScale) + m_vWorldOffset;
360 }
361
362 olc::vf2d TransformedView::ScaleToWorld(const olc::vf2d& vScreenSize) const
363 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected