Table of Contents

Struct GrowthCurve

Namespace
Homa.Sdk.Ads
Assembly
HomaGames.HomaBelly.Core.dll
[Serializable]
public struct GrowthCurve
Inherited Members

Constructors

GrowthCurve(int, float)

public GrowthCurve(int initialValue, float growthRate)

Parameters

initialValue int
growthRate float

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

float

InitialValue

The starting value before any growth is applied.

[CreateProperty]
public float InitialValue { readonly get; set; }

Property Value

float

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

iterations int

The number of iterations to apply the exponential growth formula.

Returns

float

Returns the resulting value after applying exponential growth for the specified iterations.