Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
add lerp function
Browse files Browse the repository at this point in the history
  • Loading branch information
jcyuan committed Jul 3, 2018
1 parent 2f65b45 commit 8da5b82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/NumberUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ namespace fgui.utils {
return n * NumberUtil.RADIAN;
}

public static lerp(s:number, e:number, p:number):number {
return s + p * (e - s);
}
}
}

0 comments on commit 8da5b82

Please sign in to comment.