Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

22 lines
415 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
namespace UE::TimeManagement
{
/** Represents a linear function: f(x) = a*x + b */
struct FLinearFunction
{
/** The a in "f(x) = a*x + b" */
double Slope = 1;
/** The b in "f(x) = a*x + b" */
double Offset = 0;
/** Computes the function value using X as input. */
double Evaluate(double X) const
{
return X * Slope + Offset;
}
};
}