math.EaseInOut
From GMod Wiki
This article is a stub. You can help the GMod Wiki by expanding it. |
Function | |
Syntax |
math.EaseInOut( Float progress, Float easeIn, Float easeOut ) Where is this used? |
Description: | |
Calculates the progress of a value from 0.0 to 1.0, taking into account easing. Easing in allows an object to start moving slowly, and easing out allows it to come slowly to a stop. All parameters should be between 0.0 and 1.0. | |
Returns: | Float |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.EaseInOut]Math.EaseInOut [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
This page needs an example to demonstrate the item detailed on this page. See how to make one here. See more articles that need examples here. |
Additional Notes
- If easeIn + easeOut < 1, then part of the graph of progress versus the returned value will be linear
- If easeIn + easeOut >= 1, then the entire graph of progress versus the returned value is curved
- Using 1 for easeIn and 2 for easeOut is the same as using .5 for easeIn and 1 for easeOut
See Also
- None