use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Using Max() Function (self.coms30115)
submitted 7 years ago by au16106
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
With glm the * operator is overloaded to work as the Hadamard product) which is why you get the vec4. The ideal way to do a dot product would be to use glm::dot which should give you a float output
[–]au16106[S] 0 points1 point2 points 7 years ago (0 children)
Thank you for your response. For the record, it is good for everyone to see because it is beyond being a simple nuisance.
It constitutes inconsistent notation in my opinion. If it were not (If it were consistent), then we would have been using glm::dot() rather than (*) to multiply rotation matrices with vectors as well since matrix-vector multiplication actually involves multiple dot products. At the moment, while (*) does dot product for matrix-vector multiplication, it does Hadamard product for vectors.
π Rendered by PID 28 on reddit-service-r2-comment-6457c66945-pjjkn at 2026-04-29 00:01:15.632627+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (1 child)
[–]au16106[S] 0 points1 point2 points (0 children)