Struct GrowthCurve
[Serializable]
public struct GrowthCurve
- Inherited Members
Constructors
GrowthCurve(int, float)
public GrowthCurve(int initialValue, float growthRate)
Parameters
Properties
GrowthRate
The percentage growth rate, expressed as a decimal (e.g., 0.1 represents 10% growth).
[CreateProperty]
public float GrowthRate { readonly get; set; }
Property Value
InitialValue
The starting value before any growth is applied.
[CreateProperty]
public float InitialValue { readonly get; set; }
Property Value
Methods
GetExponentialGrowth(int)
Calculates the exponential growth based on an initial value, growth rate, and a number of iterations.
public float GetExponentialGrowth(int iterations)
Parameters
iterationsintThe number of iterations to apply the exponential growth formula.
Returns
- float
Returns the resulting value after applying exponential growth for the specified iterations.