| 506 | } |
| 507 | |
| 508 | bool ScreenBase::IsReverseProjection3d(m2::PointD const & pt) const |
| 509 | { |
| 510 | if (!m_isPerspective) |
| 511 | return false; |
| 512 | |
| 513 | Vector3dT const normalizedPoint{float(2.0 * pt.x / m_PixelRect.SizeX() - 1.0), |
| 514 | -float(2.0 * pt.y / m_PixelRect.SizeY() - 1.0), 0.0, 1.0}; |
| 515 | |
| 516 | Vector3dT const perspectivePoint = normalizedPoint * m_Pto3d; |
| 517 | return perspectivePoint(0, 3) < 0.0; |
| 518 | } |
| 519 | |
| 520 | ScreenBase::Matrix3dT ScreenBase::GetModelView() const |
| 521 | { |
no test coverage detected