T
twonjosh
Hello, i'm trying to make a simple friend function for multipling a
vector and a matrix together. I'm getting a very wierd error and I
don't know why. Here is the code snipits:
Friend function prototype:
jVector4 operator*(const jVector4& vec, const jMatrix44& mat);
Code sample...........
jVector4 test_vector;
jMatrix44 test_matrix;
test_vector * test_matrix;
............end code sample
That last line is giving me this error in VS.NET:
error C2678: binary '*' : no operator found which takes a left-hand
operand of type 'jVector4' (or there is no acceptable conversion)
Any ideas what i'm doing wrong?
Thanks,
-Josh
vector and a matrix together. I'm getting a very wierd error and I
don't know why. Here is the code snipits:
Friend function prototype:
jVector4 operator*(const jVector4& vec, const jMatrix44& mat);
Code sample...........
jVector4 test_vector;
jMatrix44 test_matrix;
test_vector * test_matrix;
............end code sample
That last line is giving me this error in VS.NET:
error C2678: binary '*' : no operator found which takes a left-hand
operand of type 'jVector4' (or there is no acceptable conversion)
Any ideas what i'm doing wrong?
Thanks,
-Josh