I have a 2D vector class and I have a function that multiplies vectors, one the adds, divides, ect. I was wondering if instead of calling a function, if it would be possible to control what happens when I use *,/,+, or - . For example, could I have:
vector1 * vector2
do the same thing as
multiplyVectors(Vector1, Vector2)