geomUtils.Frustum Class

Module: cc Parent Module: cc

frustum

Index

Properties
  • accurate boolean Set whether to use accurate intersection testing function on this frustum
  • planes Plane[]
  • planes Vec3[]
Methods
  • create create a new frustum
  • clone Clone a frustum
  • copy Copy the values from one frustum to another
  • update 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 Frustum
  • f 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
  • m Mat4 the view-projection matrix
  • inv Mat4 the inverse view-projection matrix
transform

transform by matrix

meta description
Defined in cocos2d/core/geom-utils/frustum.ts:198
Parameters

results matching ""

    No results matching ""