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

Method SetWorldScale

extensions/olcPGEX_TransformedView.h:264–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 void TransformedView::SetWorldScale(const olc::vf2d& vScale)
265 {
266 m_vWorldScale = vScale;
267 if (m_bZoomClamp) m_vWorldScale = m_vWorldScale.clamp(m_vMinScale, m_vMaxScale);
268 }
269
270 void TransformedView::SetViewArea(const olc::vi2d& vViewArea)
271 {

Callers

nothing calls this directly

Calls 1

clampMethod · 0.45

Tested by

no test coverage detected