overloading if c++ code example
Example: c++ over load operator
// This will substract one vector (math vector) from another
// Good example of how to use operator overloading
vec2 operator - (vec2 const &other) {
return vec2(x - other.x, y - other.y);
}