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

Method GetTileOffset

extensions/olcPGEX_TransformedView.h:763–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761 }
762
763 const olc::vi2d TileTransformedView::GetTileOffset() const
764 {
765 return { int32_t((m_vWorldOffset.x - std::floor(m_vWorldOffset.x)) * m_vWorldScale.x),
766 int32_t((m_vWorldOffset.y - std::floor(m_vWorldOffset.y)) * m_vWorldScale.y) };
767 }
768}
769
770#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected