Table of Contents

Class WeightedFloatArray

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public class WeightedFloatArray : WeightedValue<float[]>
Inheritance
WeightedFloatArray
Inherited Members
Extension Methods

Constructors

WeightedFloatArray()

public WeightedFloatArray()

WeightedFloatArray(float[], float)

public WeightedFloatArray(float[] value, float weight)

Parameters

value float[]
weight float

Methods

Clone()

public WeightedFloatArray Clone()

Returns

WeightedFloatArray

FromBytes(BinaryReader)

public void FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

New(float[], float)

public static WeightedFloatArray New(float[] value, float weight)

Parameters

value float[]
weight float

Returns

WeightedFloatArray

SetLerped(WeightedFloatArray, WeightedFloatArray, float)

public void SetLerped(WeightedFloatArray left, WeightedFloatArray right, float w)

Parameters

left WeightedFloatArray
right WeightedFloatArray
w float

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter writer)

Parameters

writer BinaryWriter