Table of Contents

Class FloatDataMap3D

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll

A datastructure to hold 3 dimensional data in the form of floats Can be used to perfrom trilinear interpolation between individual values

[ProtoContract]
public class FloatDataMap3D
Inheritance
FloatDataMap3D
Inherited Members
Extension Methods

Constructors

FloatDataMap3D()

public FloatDataMap3D()

FloatDataMap3D(int, int, int)

public FloatDataMap3D(int width, int height, int length)

Parameters

width int
height int
length int

Fields

Data

[ProtoMember(1)]
public float[] Data

Field Value

float[]

Height

[ProtoMember(4)]
public int Height

Field Value

int

Length

[ProtoMember(3)]
public int Length

Field Value

int

Width

[ProtoMember(2)]
public int Width

Field Value

int

Methods

AddValue(int, int, int, float)

public void AddValue(int x, int y, int z, float value)

Parameters

x int
y int
z int
value float

GetLerped(float, float, float)

public float GetLerped(float x, float y, float z)

Parameters

x float
y float
z float

Returns

float

GetLerpedCenterPixel(float, float, float)

public float GetLerpedCenterPixel(float x, float y, float z)

Parameters

x float
y float
z float

Returns

float

GetValue(int, int, int)

public float GetValue(int x, int y, int z)

Parameters

x int
y int
z int

Returns

float

SetValue(int, int, int, float)

public void SetValue(int x, int y, int z, float value)

Parameters

x int
y int
z int
value float