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

Method IsPointVisible

extensions/olcPGEX_TransformedView.h:374–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 }
373
374 bool TransformedView::IsPointVisible(const olc::vf2d & vPos) const
375 {
376 olc::vi2d vScreen = WorldToScreen(vPos);
377 return vScreen.x >= 0 && vScreen.x < m_vViewArea.x&& vScreen.y >= 0 && vScreen.y < m_vViewArea.y;
378 }
379
380 bool TransformedView::IsRectVisible(const olc::vf2d& vPos, const olc::vf2d& vSize) const
381 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected