webMercatorMaxLatitude.js 890 B

123456789101112131415161718
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * The maximum latitude, in radians, both North and South, supported by a Web Mercator\n\
  4. * (EPSG:3857) projection. Technically, the Mercator projection is defined\n\
  5. * for any latitude up to (but not including) 90 degrees, but it makes sense\n\
  6. * to cut it off sooner because it grows exponentially with increasing latitude.\n\
  7. * The logic behind this particular cutoff value, which is the one used by\n\
  8. * Google Maps, Bing Maps, and Esri, is that it makes the projection\n\
  9. * square. That is, the rectangle is equal in the X and Y directions.\n\
  10. *\n\
  11. * The constant value is computed as follows:\n\
  12. * czm_pi * 0.5 - (2.0 * atan(exp(-czm_pi)))\n\
  13. *\n\
  14. * @name czm_webMercatorMaxLatitude\n\
  15. * @glslConstant\n\
  16. */\n\
  17. const float czm_webMercatorMaxLatitude = 1.4844222297453324;\n\
  18. ";