Simple linear interpolation. This gives you the same result as
Mathf.Lerp(from, to, t) and also clamps time between 0 and 1,
so you don't have to worry about values less than 0 or larger
than 1.
Namespace: NarayanaGames.CommonAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
Parameters
- from
- Type: System Single
Value to start from
- to
- Type: System Single
Value to go to
- frac
- Type: System Single
Value between 0 and 1
Return Value
linear interpolation from from to toSee Also