geomUtils.Frustum
Class
Module: cc
frustum
Index
Properties
accurate
boolean
Set whether to use accurate intersection testing function on this frustumplanes
Plane[]
planes
Vec3[]
Methods
create
create a new frustumclone
Clone a frustumcopy
Copy the values from one frustum to anotherupdate
Update the frustum information according to the given transform matrix.transform
transform 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
f
Frustum
copy
Copy the values from one frustum to another
meta | description |
---|---|
Returns | Frustum |
Defined in | cocos2d/core/geom-utils/frustum.ts:110 |
Parameters
out
Frustumf
Frustum
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
mat
Mat4