Hi,
What is wrong with this function?
Error is:Code:float distance3(float 1px, float 1py, float 1pz, float 2px, float 2py,
float 2pz)
{
float dist = 0.0f;
float dist = sqrt(((2px - 1px)(2px - 1px)) + ((2py - 1py)(2py - 1py)) +
((2pz - 1pz)(2pz - 1pz)));
return dist;
}
Any help will be great. Thanks!Quote:
error C2064: term does not evaluate to a function taking 1 arguments