mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Improved adding and removal of anim events
This commit is contained in:
parent
f0d46df3d6
commit
8523abf957
276 changed files with 1401 additions and 5422 deletions
17
Assets/Scripts/Math/GenMath.cs
Normal file
17
Assets/Scripts/Math/GenMath.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public static class GenMath
|
||||
{
|
||||
public static float LerpDouble(float inFrom, float inTo, float outFrom, float outTo, float x)
|
||||
{
|
||||
float num = (x - inFrom) / (inTo - inFrom);
|
||||
return outFrom + (outTo - outFrom) * num;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue