new CameraState(center, width) → {CameraState}
Default Constructor
Parameters:
Name | Type | Description |
---|---|---|
center |
Array.<Float> | final value of the center Interpolation |
width |
Array.<Float> | final value of the width Interpolation |
- Source:
Returns:
new instance of CameraState
- Type
- CameraState
Methods
configInterpolation(stiffness, duration) → {void}
Confiqure interpolation of camera
Parameters:
Name | Type | Description |
---|---|---|
stiffness |
Number | stiffness value of interpolate, stiffness of 1 switches off interpolation |
duration |
Number | duration value of interpolate |
- Source:
Returns:
- Type
- void
getCenter() → {Array.<Float>}
Return the CameraState center
- Source:
Returns:
current value of the center Interpolation
- Type
- Array.<Float>
getWidth() → {Array.<Float>}
Return the CameraState width
- Source:
Returns:
current value of the width Interpolation
- Type
- Array.<Float>
setCenter(c) → {void}
Set the CameraState Center
Parameters:
Name | Type | Description |
---|---|---|
c |
Array.<Float> | final value of the center Interpolation |
- Source:
Returns:
- Type
- void
setWidth(w) → {void}
Set the CameraState Width
Parameters:
Name | Type | Description |
---|---|---|
w |
Array.<Float> | final value of the width Interpolation |
- Source:
Returns:
- Type
- void
updateCameraState() → {void}
Update the CameraState interpolation values
- Source:
Returns:
- Type
- void