geomUtils.Frustum Class
Module: cc
frustum
Index
Properties
accuratebooleanSet whether to use accurate intersection testing function on this frustumplanesPlane[]planesVec3[]
Methods
createcreate a new frustumcloneClone a frustumcopyCopy the values from one frustum to anotherupdateUpdate the frustum information according to the given transform matrix.transformtransform by matrix
Details
Properties
accurate
Set whether to use accurate intersection testing function on this frustum
| meta | description |
|---|---|
| Type | boolean |
| Defined in | cocos2d/core/geom-utils/frustum.ts:50 |
planes
| meta | description |
|---|---|
| Type | Plane |
| Defined in | cocos2d/core/geom-utils/frustum.ts:128 |
planes
| meta | description |
|---|---|
| Type | Vec3[] |
| Defined in | cocos2d/core/geom-utils/frustum.ts:132 |
Methods
create
create a new frustum
| meta | description |
|---|---|
| Returns | Frustum |
| Defined in | cocos2d/core/geom-utils/frustum.ts:89 |
clone
Clone a frustum
| meta | description |
|---|---|
| Returns | Frustum |
| Defined in | cocos2d/core/geom-utils/frustum.ts:99 |
Parameters
fFrustum
copy
Copy the values from one frustum to another
| meta | description |
|---|---|
| Returns | Frustum |
| Defined in | cocos2d/core/geom-utils/frustum.ts:110 |
Parameters
outFrustumfFrustum
update
Update the frustum information according to the given transform matrix. Note that the resulting planes are not normalized under normal mode.
| meta | description |
|---|---|
| Defined in | cocos2d/core/geom-utils/frustum.ts:150 |
Parameters
transform
transform by matrix
| meta | description |
|---|---|
| Defined in | cocos2d/core/geom-utils/frustum.ts:198 |
Parameters
matMat4