G
Guybrush Threepwood
double ** matrix;
struct data_point
{
float x,y,z;
float nx,ny,nz;
float value;
};
Hi I have the following function definition. My question is what is
basic_func in that definition?
I have never seen this before. Can anyone tell me what it means?
matrix and data_point you can see them declared above, and inside the
function this is the only other place where basic_func is mentioned in
the code I am pasting from.
void makematrix_poly( double (*basic_func)(data_point *, data_point *) )
{
//....
matrix[pi+1][si+1] = (*basic_func)(&points[pi], &points[si]);
//....
}
struct data_point
{
float x,y,z;
float nx,ny,nz;
float value;
};
Hi I have the following function definition. My question is what is
basic_func in that definition?
I have never seen this before. Can anyone tell me what it means?
matrix and data_point you can see them declared above, and inside the
function this is the only other place where basic_func is mentioned in
the code I am pasting from.
void makematrix_poly( double (*basic_func)(data_point *, data_point *) )
{
//....
matrix[pi+1][si+1] = (*basic_func)(&points[pi], &points[si]);
//....
}