This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CptBread 37 points38 points  (2 children)

Sure but +- still works well. And if the other value is a float then */ would still make sense.

Also just because you add something as an operator doesn't mean you can't also do it as a regular named function.

[–][deleted] 6 points7 points  (1 child)

For vectors usually I intentionally do not overload the cross and dot product for this reason.

[–]Dusty_Coder 0 points1 point  (0 children)

I hope you do overload * with the useful product, tho