Intersect.js 1.0 KB

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