Cocos Creator
Manual
API Ref
Cocos2d-x
Manual
API Ref
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
animation
RatioSampler
Class RatioSampler
Hierarchy
RatioSampler
Index
Constructors
constructor
Properties
find
Ratio
ratios
Methods
sample
Constructors
constructor
new
Ratio
Sampler
(
ratios
:
number
[]
)
:
RatioSampler
Parameters
ratios:
number
[]
Returns
RatioSampler
Properties
Private
find
Ratio
find
Ratio
:
(
ratios
:
number
[]
, ratio
:
number
)
=>
number
Type declaration
(
ratios
:
number
[]
, ratio
:
number
)
:
number
Parameters
ratios:
number
[]
ratio:
number
Returns
number
ratios
ratios
:
number
[]
Methods
sample
sample
(
ratio
:
number
)
:
number
Parameters
ratio:
number
Returns
number
Globals
animation
Ratio
Sampler
constructor
find
Ratio
ratios
sample
Generated using
TypeDoc