Skip to main content

MathfOperation

A static class in Root.Township, Alta.

Static float operations picked by an OperationType, for code that combines a current value with a new one.

Methods​

MemberWhat it is
static float Add(float a, float b)Returns a plus b.
static Operation GetOperation(OperationType type)Returns the function for an OperationType (Set, Max, Min, Add, Subtract, Multiply, Multiply1Minus), or null for any other value.
static float Multiply(float a, float b)Returns a times b.
static float Multiply1Minus(float a, float b)Returns a times (1 minus b), so b works as a fraction to take away.
static float Set(float a, float b)Ignores a and returns b.
static float Subtract(float a, float b)Returns a minus b.