mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
17 lines
434 B
C#
17 lines
434 B
C#
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;
|
|
}
|
|
}
|
|
}
|