HeightReference.js 492 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Represents the position relative to the terrain.
  3. *
  4. * @enum {number}
  5. */
  6. const HeightReference = {
  7. /**
  8. * The position is absolute.
  9. * @type {number}
  10. * @constant
  11. */
  12. NONE: 0,
  13. /**
  14. * The position is clamped to the terrain.
  15. * @type {number}
  16. * @constant
  17. */
  18. CLAMP_TO_GROUND: 1,
  19. /**
  20. * The position height is the height above the terrain.
  21. * @type {number}
  22. * @constant
  23. */
  24. RELATIVE_TO_GROUND: 2,
  25. };
  26. export default Object.freeze(HeightReference);