Framework update

This commit is contained in:
Tercio Jose
2022-08-14 18:17:45 -03:00
parent 0f02fb0c46
commit 145233f9c5
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 327
local dversion = 328
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
+6
View File
@@ -70,6 +70,12 @@ function DF:GetDotProduct (value1, value2)
return (value1.x * value2.x) + (value1.y * value2.y)
end
function DF:GetBezierPoint(value, point1, point2, point3)
local bP1 = Lerp(point1, point2, value)
local bP2 = Lerp(point2, point3, value)
return Lerp(bP1, bP2, value)
end
--normalized value 0-1 result in the value on the range given, e.g 200-400 range with a value of .5 result in 300
function DF:LerpNorm (minValue, maxValue, value)
return (minValue + value * (maxValue - minValue))