MCPcopy Create free account
hub / github.com/comaps/comaps / ResetPerspective

Method ResetPerspective

libs/geometry/screenbase.cpp:417–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void ScreenBase::ResetPerspective()
418{
419 m_isPerspective = false;
420 m_isAutoPerspective = false;
421
422 double const old_dy = m_ViewportRect.SizeY() * (m_3dScale - 1.0);
423
424 m_3dScale = 1.0;
425 m_3dAngleX = 0.0;
426 m_3dMaxAngleX = 0.0;
427
428 Move(0.0, -old_dy / 2.0);
429}
430
431m2::PointD ScreenBase::PtoP3d(m2::PointD const & pt) const
432{

Callers 2

SaveViewportMethod · 0.80
Disable3dModeMethod · 0.80

Calls 1

SizeYMethod · 0.80

Tested by

no test coverage detected