Enum EnumTransformFunction
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
Used for EvolvingNatFloat value transforms
public enum EnumTransformFunction
- Extension Methods
Fields
CLAMPEDPOSITIVESINUS = 9
firstval * GameMath.Min(5 * Math.Abs(GameMath.FastSin(factor * seq)), 1)
COSINUS = 10
firstval + GameMath.FastCos(factor * seq)
IDENTICAL = 0
y = firstval
INVERSELINEAR = 6
firstval + 1f / (1f + factor * seq)
LINEAR = 1
y = firstval + factor * seq
LINEARINCREASE = 4
firstval + firstval / Math.Abs(firstval) * factor * seq
LINEARNULLIFY = 2
y = factor > 0 ? Math.Min(0, firstval + factor * seq) : Math.Max(0, firstval + factor * seq)
LINEARREDUCE = 3
firstval - firstval / Math.Abs(firstval) * factor * seq
QUADRATIC = 5
firstval + Math.Sign(factor) * (factor * seq) * (factor * seq)
ROOT = 7
firstval + (float)Math.Sqrt(factor * seq)
SINUS = 8
firstval + GameMath.FastSin(factor * seq)
SMOOTHSTEP = 11
firstval + GameMath.SmoothStep(factor * seq)