Hello,
I wanted to ask.
If I define typedef float mymat3[3];
and then I have a function:
void myfunc(float *One_mat_, ....
and inside function I do:
mymat3 * One_mat=(mymat3 *)One_mat_;
while(i<numPoints) {
One_mat[i][0] = (One_mat_[++c1]);
Does this mean , that I am copying One_mat_ (which I am casting it as a mymat3 ) to One_mat which is defined as a mymat3 matrix ?
And why as an argument I have float *One_mat_
and inside function I do: (mymat3 *)One_mat_
and not (float *)One_mat_
?
Could I have inside argument the void myfunc(mymat3 * One_mat_, ....
instead of void myfunc(float *One_mat_, ....
?
Thanks!