Quote:Original post by JohnBoltonQuote:Original post by SiCrane
For dot and cross products I tend to do something like:
*** Source Snippet Removed ***
So then I can use "A <dot> B" or "A <cross> B" to calculate the dot or cross product. On the down side, it's not idiomatic C++, so it tends to generate WTF comments from people seeing it used before seeing how its implemented.
That is one of the most ridiculous things I have ever seen.
Ridiculous? Yes.
Confusing? Yes.
Smothered in awesome sauce? YES!!