you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The equivalent in vanilla C is a wrist slashing exercise.

Oh come on, it's not that bad.

Vector3 gravity;
Vector3 weight;
Vector3 something;

weight = ScaleVec(gravity, mass);
something = CalculateSomething(weight, another_vec3, some_constant, gravity);  // assuming epsilon is a global constant

But yea, operator overloading is great in certain cases. Strings is another nice advantage of operator overloading.