Added more comments
@@ -5,9 +5,10 @@ Class used to perform calculation with a ratio.
|
||||
## Example
|
||||
|
||||
```javascript
|
||||
//Create test ratio
|
||||
//Create test ratio.
|
||||
var ratio = api.GameLib.Timing.toRatio(0.25);
|
||||
|
||||
//Use it to calculate the x position through an easing.
|
||||
var culatedX = ratio.invert().easeInSine().toAbsolute(1920);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user