Home
last modified time | relevance | path

Searched refs:alt_pm1 (Results 1 – 1 of 1) sorted by relevance

/dports/astro/stellarium/stellarium-0.21.3/src/core/modules/
H A DLandscape.cpp822 …const float alt_pm1 = 2.0f * alt_rad / M_PIf; // sampled altitude, -1...+1 linear in altitude an… in getOpacity() local
824 …if (alt_pm1>img_top_pm1) { Q_ASSERT(0); return 0.0f; } // should have been caught above with alt_r… in getOpacity()
826 …if (alt_pm1<img_bot_pm1) { Q_ASSERT(0); return 1.0f; } // should have been caught above with alt_r… in getOpacity()
828 …y_img_1=(alt_pm1-img_bot_pm1)/(img_top_pm1-img_bot_pm1); // the sampled altitude in 0..1 visible i… in getOpacity()
1302 …const float alt_pm1 = 2.0f * alt_rad / M_PIf; // sampled altitude, -1...+1 linear in… in getOpacity() local
1304 if (alt_pm1>img_top_pm1) return 0.0f; in getOpacity()
1306 …if (alt_pm1<img_bot_pm1) return 1.0f; // rare case of a hole in the ground. Even though there is a… in getOpacity()
1308 …float y_img_1=(alt_pm1-img_bot_pm1)/(img_top_pm1-img_bot_pm1); // the sampled altitude in 0..1 ima… in getOpacity()