3 ms·
>Vectors have more values, 3 is common. Very useful for things like position or color. >If two vectors overlap, the dot product is 1. If they are perpedicular
by noobermin 10y ago
>Vectors have more values, 3 is common. Very useful for things like position or color.
>If two vectors overlap, the dot product is 1. If they are perpedicular (90 degree angle), the dot product is 0. (Note: just for vectors that only represent a direction and have length 1, you can think about varying vector lengths later)
Something is terrible incongruent (pun intended) here. How can three numbers have a length, much less length of one? I think here, the mathematical introduction that a vector is just an arrow is better here. It just so happens you can express the arrow as a set of numbers, which I admit is not obvious at first unless you've taken algebra 2. But the jump from "3 numbers" to length is confusing too.
The truth is people conflate vectors with arrays, but if you want to think deeper than anyone who does computer graphics needs to, you don't need coordinates or any group of numbers to express vectors.
- santaclaus 10y ago> >If two vectors overlap, the dot product is 1. This is only true for a subset of all vectors (normalized or \sum a_i b_i = 1)... > The truth is people conflate vectors with arrays, but if you want to think deeper than anyone who does computer graphics needs to, you don't need coordinates or any group of numbers to express vectors. I'm a math simpleton myself, but computer graphics people can and do go deeper: https://www.cs.cmu.edu/~kmcrane/Projects/DGPDEC/paper.pdf https://www.cs.cmu.edu/~kmcrane/Projects/DGPDEC/paper.pdf
- delinka 10y agoApparently these notes are transliterated out of the author's own notes. It is mentioned that this is only for normal vectors, just not conveniently inline: "Note: just for vectors that only represent a direction and have length 1"
- delinka 10y agoI'm not seeing any indication of three numbers relating to length. I see a gap in information, not a leap from "3 numbers" to "length." What's missing is the definition of a vector: an item with direction and magnitude/length. Using the distance formula, you can determine the length of the vector. So if your vector is <5,4,3>, plug that and the origin <0,0,0> into the distance formula to get a length of 5 * sqrt(2) (approximately 7.071) Further, you can 'normalize' the vector so that the direction is the same but the magnitude is 1. To normalize, divide each component by the length: http://www.wolframalpha.com/input/?i=%3C5%2F(5sqrt(2))%2C4%2F(5sqrt(2))%2C3%2F(5sqrt(2))%3E http://www.wolframalpha.com/input/?i=%3C5%2F(5sqrt(2))%2C4%2...
- noobermin 10y agoThat's my point...there is a gap in information.