Loading...
Searching...
No Matches
realvirtual.ZeroOneTransition Struct Reference
Public Member Functions | |
| ZeroOneTransition (float t) | |
| bool | Advance (bool active, float diff) |
| Advance the transition by the specified value. | |
| float | Advance (float diff) |
| Advance the transition by the specified value. | |
| float | SmoothStep (float from, float to) |
Public Attributes | |
| float | Transition |
Properties | |
| float | Eased [get] |
| Return the eased transition. | |
| float | Squared [get] |
| float | Sqrt [get] |
Member Function Documentation
◆ Advance() [1/2]
| bool realvirtual.ZeroOneTransition.Advance | ( | bool | active, |
| float | diff | ||
| ) |
Advance the transition by the specified value.
If active is true the transition will be advanced towards 1. Otherwise to 0.
◆ Advance() [2/2]
| float realvirtual.ZeroOneTransition.Advance | ( | float | diff | ) |
Advance the transition by the specified value.
Property Documentation
◆ Eased
|
get |
Return the eased transition.
Identical to Mathf.SmoothStep( ).