static Cardinal3D(float x,float y,float p[4][4])
For a value of x and y each from 0.0 to 1.0,
returns a value where x,y of <0.0,0.0> returns p[1][1],
x,y of <1.0,0.0> returns p[1][2],
x,y of <0.0,1.0> returns p[2][1],
and x,y of <1.0,1.0> returns p[2][2].
The other entries in the control matrix influence the non-linear interpolation,
like in Cardinal2D().
static FlatAverage(float x,float y,float p0,float p1,float p2,float p3)
static FlatAverage(float x,float y,float p[4])
Simple linear interpolation over x and y each from 0.0 to 1.0,
where x,y of <0.0,0.0> returns p0,
x,y of <1.0,0.0> returns p1,
x,y of <0.0,1.0> returns p2,
and x,y of <1.0,1.0> returns p3.