Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
LinearInterpolation.cpp File Reference
#include "Globals.h"
#include "LinearInterpolation.h"
Include dependency graph for LinearInterpolation.cpp:

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...
 

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.