When I call my calculatePlaneEQ
function, it throws me an access violation when I assign values back... I'm rusty on my pointers but it seems that this should work!
float *planeCoefA, *planeCoefB, *planeCoefC, *planeCoefD = NULL;
CALL:
calculatePlaneEQ (<...>, &planeCoefA, &planeCoefB, &planeCoefC, &planeCoefD);
DEF:
void calculatePlaneEQ (<...>, float ** myXnorm, float ** myYnorm, float ** myZnorm, float** myD)
{
float xNorm = 1.3;
float yNorm = 1.4;
float zNorm = 1.5;
float eqD = 1.6;
*(*myXnorm) = xNorm;
*(*myYnorm) = yNorm;
*(*myZnorm) = zNorm;
*(*myD) = eqD;
}