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
Fields
Data
[ProtoMember(1)]
public float[] Data
Field Value
- float[]
Height
[ProtoMember(4)]
public int Height
Field Value
Length
[ProtoMember(3)]
public int Length
Field Value
Width
[ProtoMember(2)]
public int Width
Field Value
Methods
AddValue(int, int, int, float)
public void AddValue(int x, int y, int z, float value)
Parameters
GetLerped(float, float, float)
public float GetLerped(float x, float y, float z)
Parameters
Returns
GetLerpedCenterPixel(float, float, float)
public float GetLerpedCenterPixel(float x, float y, float z)
Parameters
Returns
GetValue(int, int, int)
public float GetValue(int x, int y, int z)
Parameters
Returns
SetValue(int, int, int, float)
public void SetValue(int x, int y, int z, float value)