2020-04-17 08:31:36 +08:00
|
|
|
/**
|
2012-04-17 07:38:31 +08:00
|
|
|
* This enumerated type is used in determining where, relative to the frustum, an
|
|
|
|
|
* object is located. The object can either be fully contained within the frustum (INSIDE),
|
2020-06-23 01:16:55 +08:00
|
|
|
* partially inside the frustum and partially outside (INTERSECTING), or somewhere entirely
|
2012-04-17 07:38:31 +08:00
|
|
|
* outside of the frustum's 6 planes (OUTSIDE).
|
2020-04-17 08:31:36 +08:00
|
|
|
*
|
2023-02-10 16:35:41 +08:00
|
|
|
* @enum {number}
|
2020-04-17 08:31:36 +08:00
|
|
|
*/
|
2012-04-17 07:38:31 +08:00
|
|
|
const Intersect = {
|
2020-04-17 08:31:36 +08:00
|
|
|
/**
|
2012-04-17 07:38:31 +08:00
|
|
|
* Represents that an object is not contained within the frustum.
|
2020-04-17 08:31:36 +08:00
|
|
|
*
|
2023-02-10 16:35:41 +08:00
|
|
|
* @type {number}
|
2013-06-30 06:58:03 +08:00
|
|
|
* @constant
|
2020-04-17 08:31:36 +08:00
|
|
|
*/
|
2014-05-23 02:29:44 +08:00
|
|
|
OUTSIDE: -1,
|
2012-04-17 07:38:31 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents that an object intersects one of the frustum's planes.
|
|
|
|
|
*
|
2023-02-10 16:35:41 +08:00
|
|
|
* @type {number}
|
2013-06-30 06:58:03 +08:00
|
|
|
* @constant
|
2012-04-17 07:38:31 +08:00
|
|
|
*/
|
2014-05-23 02:29:44 +08:00
|
|
|
INTERSECTING: 0,
|
2012-04-17 07:38:31 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents that an object is fully within the frustum.
|
|
|
|
|
*
|
2023-02-10 16:35:41 +08:00
|
|
|
* @type {number}
|
2013-06-30 06:58:03 +08:00
|
|
|
* @constant
|
2012-04-17 07:38:31 +08:00
|
|
|
*/
|
2014-05-23 02:29:44 +08:00
|
|
|
INSIDE: 1,
|
2012-04-17 07:38:31 +08:00
|
|
|
};
|
2020-02-27 17:02:21 +08:00
|
|
|
export default Object.freeze(Intersect);
|