mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
mapgen work-in-progress
This commit is contained in:
parent
9a22d02903
commit
2e7b15fed3
8 changed files with 993 additions and 122 deletions
|
@ -44,10 +44,10 @@ double linearInterpolation(double x0, double x1, double t){
|
|||
}
|
||||
|
||||
double biLinearInterpolation(double x0y0, double x1y0, double x0y1, double x1y1, double x, double y){
|
||||
/*double tx = easeCurve(x);
|
||||
double ty = easeCurve(y);*/
|
||||
double tx = x;
|
||||
double ty = y;
|
||||
double tx = easeCurve(x);
|
||||
double ty = easeCurve(y);
|
||||
/*double tx = x;
|
||||
double ty = y;*/
|
||||
double u = linearInterpolation(x0y0,x1y0,tx);
|
||||
double v = linearInterpolation(x0y1,x1y1,tx);
|
||||
return linearInterpolation(u,v,ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue