Class WeightedValue<T>
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
public class WeightedValue<T>
Type Parameters
T
- Inheritance
-
WeightedValue<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
WeightedValue()
public WeightedValue()
WeightedValue(T, float)
public WeightedValue(T value, float weight)
Parameters
value
Tweight
float
Fields
Value
public T Value
Field Value
- T
Weight
public float Weight
Field Value
Methods
New(T, float)
public static WeightedValue<T> New(T value, float weight)
Parameters
value
Tweight
float
Returns
Set(T, float)
public void Set(T value, float weight = 1)
Parameters
value
Tweight
float