Lets say I have a vec3 class and functions to go along with it:
vec3_get_length(vec3) vec3_set(vec3, x, y, z)
//But what if I implemented the operators: // vec3 '+' vec3 // vec3 '*' vec3 // vec3 '*' double // double '*' vec3 // vec3 '*=' double //etc.
//In EDL can I simply use: vec3 v = vec3(0,0,0)
v *= 1.9999999;
// Or would I have to add the C++ operators to EDL, if so how would I accomplish this. Do I use cpp{ }?
|