📅  最后修改于: 2022-03-11 14:44:47.270000             🧑  作者: Mango
// 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);
}