Table of Contents

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 T
weight float

Fields

Value

public T Value

Field Value

T

Weight

public float Weight

Field Value

float

Methods

New(T, float)

public static WeightedValue<T> New(T value, float weight)

Parameters

value T
weight float

Returns

WeightedValue<T>

Set(T, float)

public void Set(T value, float weight = 1)

Parameters

value T
weight float