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

Method ScaleToScreen

extensions/olcPGEX_TransformedView.h:367–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365 }
366
367 olc::vf2d TransformedView::ScaleToScreen(const olc::vf2d& vWorldSize) const
368 {
369 //olc::vf2d vFloat = (vWorldSize * m_vWorldScale) + olc::vf2d(0.5f, 0.5f);
370 //return vFloat.floor();
371 return (vWorldSize * m_vWorldScale);
372 }
373
374 bool TransformedView::IsPointVisible(const olc::vf2d & vPos) const
375 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected