Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions | Variables
LinearInterpolation.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void LinearInterpolate1DArray (float *a_Src, int a_SrcSizeX, float *a_Dst, int a_DstSizeX)
 Puts linearly interpolated values from one array into another array. More...
 
void LinearInterpolate2DArray (float *a_Src, int a_SrcSizeX, int a_SrcSizeY, float *a_Dst, int a_DstSizeX, int a_DstSizeY)
 Puts linearly interpolated values from one array into another array. More...
 
void LinearInterpolate3DArray (float *a_Src, int a_SrcSizeX, int a_SrcSizeY, int a_SrcSizeZ, float *a_Dst, int a_DstSizeX, int a_DstSizeY, int a_DstSizeZ)
 Puts linearly interpolated values from one array into another array. More...
 

Variables

const int MAX_INTERPOL_SIZEX = 256
 Maximum X-size of the interpolated array. More...
 
const int MAX_INTERPOL_SIZEY = 512
 Maximum Y-size of the interpolated array. More...
 
const int MAX_INTERPOL_SIZEZ = 256
 Maximum Z-size of the interpolated array. More...
 

Function Documentation

◆ LinearInterpolate1DArray()

void LinearInterpolate1DArray ( float *  a_Src,
int  a_SrcSizeX,
float *  a_Dst,
int  a_DstSizeX 
)

Puts linearly interpolated values from one array into another array.

1D version

Parameters
a_SrcSrc array
a_SrcSizeXCount of the src array
a_DstSrc array
a_DstSizeXCount of the dst array

Definition at line 58 of file LinearInterpolation.cpp.

◆ LinearInterpolate2DArray()

void LinearInterpolate2DArray ( float *  a_Src,
int  a_SrcSizeX,
int  a_SrcSizeY,
float *  a_Dst,
int  a_DstSizeX,
int  a_DstSizeY 
)

Puts linearly interpolated values from one array into another array.

2D version

Parameters
a_SrcSrc array, [x + a_SrcSizeX * y]
a_SrcSizeYCount of the src array, in each direction
a_DstDst array, [x + a_DstSizeX * y]
a_DstSizeYCount of the dst array, in each direction

Definition at line 86 of file LinearInterpolation.cpp.

◆ LinearInterpolate3DArray()

void LinearInterpolate3DArray ( float *  a_Src,
int  a_SrcSizeX,
int  a_SrcSizeY,
int  a_SrcSizeZ,
float *  a_Dst,
int  a_DstSizeX,
int  a_DstSizeY,
int  a_DstSizeZ 
)

Puts linearly interpolated values from one array into another array.

3D version

Parameters
a_SrcSrc array, [x + a_SrcSizeX * y + a_SrcSizeX * a_SrcSizeY * z]
a_SrcSizeZCount of the src array, in each direction
a_DstDst array, [x + a_DstSizeX * y + a_DstSizeX * a_DstSizeY * z]
a_DstSizeZCount of the dst array, in each direction

Definition at line 154 of file LinearInterpolation.cpp.

Variable Documentation

◆ MAX_INTERPOL_SIZEX

const int MAX_INTERPOL_SIZEX = 256

Maximum X-size of the interpolated array.

Definition at line 18 of file LinearInterpolation.h.

◆ MAX_INTERPOL_SIZEY

const int MAX_INTERPOL_SIZEY = 512

Maximum Y-size of the interpolated array.

Definition at line 19 of file LinearInterpolation.h.

◆ MAX_INTERPOL_SIZEZ

const int MAX_INTERPOL_SIZEZ = 256

Maximum Z-size of the interpolated array.

Definition at line 20 of file LinearInterpolation.h.