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

Method GetTileUnderScreenPos

extensions/olcPGEX_TransformedView.h:758–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756 }
757
758 olc::vi2d TileTransformedView::GetTileUnderScreenPos(const olc::vi2d& vPos) const
759 {
760 return ScreenToWorld(vPos).floor();
761 }
762
763 const olc::vi2d TileTransformedView::GetTileOffset() const
764 {

Callers

nothing calls this directly

Calls 1

floorMethod · 0.45

Tested by

no test coverage detected