Intersect.js 811 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * This enumerated type is used in determining where, relative to the frustum, an
  3. * object is located. The object can either be fully contained within the frustum (INSIDE),
  4. * partially inside the frustum and partially outside (INTERSECTING), or somewhere entirely
  5. * outside of the frustum's 6 planes (OUTSIDE).
  6. *
  7. * @enum {number}
  8. */
  9. const Intersect = {
  10. /**
  11. * Represents that an object is not contained within the frustum.
  12. *
  13. * @type {number}
  14. * @constant
  15. */
  16. OUTSIDE: -1,
  17. /**
  18. * Represents that an object intersects one of the frustum's planes.
  19. *
  20. * @type {number}
  21. * @constant
  22. */
  23. INTERSECTING: 0,
  24. /**
  25. * Represents that an object is fully within the frustum.
  26. *
  27. * @type {number}
  28. * @constant
  29. */
  30. INSIDE: 1,
  31. };
  32. export default Object.freeze(Intersect);