Class WeightedFloat
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
public class WeightedFloat : WeightedValue<float>
- Inheritance
-
WeightedFloat
- Inherited Members
-
- Extension Methods
-
Constructors
WeightedFloat()
WeightedFloat(float, float)
public WeightedFloat(float value, float weight)
Parameters
value
float
weight
float
Methods
Clone()
public WeightedFloat Clone()
Returns
- WeightedFloat
FromBytes(BinaryReader)
public void FromBytes(BinaryReader reader)
Parameters
reader
BinaryReader
New(float, float)
public static WeightedFloat New(float value, float weight)
Parameters
value
float
weight
float
Returns
- WeightedFloat
SetLerped(WeightedFloat, WeightedFloat, float)
public void SetLerped(WeightedFloat left, WeightedFloat right, float w)
Parameters
left
WeightedFloat
right
WeightedFloat
w
float
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter writer)
Parameters
writer
BinaryWriter