I need to make a function:
void GenerateNormal(float x[3], float y[3], float z[3], float &ox, float &oy, float &oz)
{
//Calculate coordinates for a glNormal and return them ox,oy and oz
}
I have a sinking feeling that the math will be quite difficult. Can anybody help me?