In the first recursive call there is no need to recalculate whether the
currentCoords parameter of AzimuthalProjectionPrivate::findHorizon(...)
is hidden by the globe, because that information is already known on the
previous level.
Splitting the findHorizon() method into a "interface" method and
a "worker" method for the recursion, where the existing information
is passed on, allows to avoid that duplicated calculation.
Details
Details
- Reviewers
rahn - Group Reviewers
Marble - Commits
- R34:64efed1e3ba2: AzimuthalProjection: Avoid duplicated globeHidesPoint calculation in iteration
Diff Detail
Diff Detail
- Repository
- R34 Marble
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.