patriciogonzalezvivo / thebookofshaders

Step-by-step guide through the abstract and complex universe of Fragment Shaders.

Home Page:http://TheBookOfShaders.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect definition of dot product in glossary

oshawa-connection opened this issue · comments

https://github.com/patriciogonzalezvivo/thebookofshaders/tree/master/glossary/dot#description

The definition of the dot product is not one I'm familiar with. Am I getting confused here? Happy to submit a pr if this is indeed a mistake!

Maybe it was updated in the meantime, but essentially it describes it as vec1.x*vec2.x + vec1.y*vec2.y which is the same definition as I've seen pretty much everywhere else, too.

(What could at first glance confuse here is naming two vectors x and y ... =)