isEmpty.js 692 B

123456789101112131415161718192021
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * Determines if a time interval is empty.\n\
  4. *\n\
  5. * @name czm_isEmpty\n\
  6. * @glslFunction \n\
  7. * \n\
  8. * @param {czm_raySegment} interval The interval to test.\n\
  9. * \n\
  10. * @returns {bool} <code>true</code> if the time interval is empty; otherwise, <code>false</code>.\n\
  11. *\n\
  12. * @example\n\
  13. * bool b0 = czm_isEmpty(czm_emptyRaySegment); // true\n\
  14. * bool b1 = czm_isEmpty(czm_raySegment(0.0, 1.0)); // false\n\
  15. * bool b2 = czm_isEmpty(czm_raySegment(1.0, 1.0)); // false, contains 1.0.\n\
  16. */\n\
  17. bool czm_isEmpty(czm_raySegment interval)\n\
  18. {\n\
  19. return (interval.stop < 0.0);\n\
  20. }\n\
  21. ";