You don't have to tell Threejs or WebGL or any other software. Just use them.
Make sure that if you are working with others (e.g. pair programming) have all agreed. We don't need any Mars Climate Orbiter catastrophes.
P = (1, 5, 3) Q = (4, 2, 8) v = P-Q = (-3, 3, -5)
However, if:
P = (2, 6, 4) Q= (5, 3, 9)then v will still have the same value, but the points P an Q exist in a different place on the x-y-z plane, so the vector should technically exist in a different place.
How does it choose which value of P and Q to take? "
What a fantastic question! Very thoughtful.
The answer is that vectors don't have a location. "North" means north, whereever you are.
Mathematically, a vector like (1,0,0) always means "increase X" and can be applied to whatever vertex you want, maybe all of them.
Yes. Very soon (two weeks), we are going to learn about the instance transform, which will make the computations a bit more modular and efficient, but your intuition is good.
Sure. Imagine a wooden cube and a wooden ball and a steel cube and a steel ball.
Clearly, we can create two pairs that have a lot in common:
Computer Graphics has modularized things that way. To actually draw something, we need to know both its geometry and its material. The combination is called a mesh and our scene graph comprises a bunch of meshes.
Let's put that off for a bit, if you would. But I'll give a preview:
The result is an endless series of frames, creating an animation.
Let's look at the code here: creating a scene