-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bafd68e
commit d384238
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--[[ | ||
Copyright (c) 2020, Artur Zhidkov (TheArturZh) | ||
--]] | ||
|
||
local module = {} | ||
|
||
--[[ | ||
This function is from ToLua project: | ||
https://github.com/topameng/tolua/blob/master/Assets/ToLua/Lua/UnityEngine/Mathf.lua | ||
Copyright (c) 2015 - 2016, 蒙占志(topameng) [email protected] | ||
--]] | ||
function module.inverse_lerp(from, to, value) | ||
if from < to then | ||
if value < from then | ||
|