MoonTools.Curve/Curve/ArgumentChecker.cs

14 lines
390 B
C#
Raw Permalink Normal View History

2020-02-21 01:37:52 +00:00
namespace MoonTools.Curve
2019-10-29 01:48:36 +00:00
{
public static class ArgumentChecker
{
public static void CheckT(float t, float startTime = 0, float endTime = 1)
{
if (t < startTime || t > endTime)
{
throw new System.ArgumentException($"{t} is not a valid value for t. Must be between {startTime} and {endTime}.");
}
}
}
2020-02-21 01:37:52 +00:00
}