Please do not explain me how to calculate the Dot product. I was pretty good at school with it but when it comes to using it in programming I am a bit confused.
I have watched this video and the guy explain me the dot product:
The question I want ask you, and I have never asked my teacher is: If I can use the Dot product in 3D too without adding the z component or do I have to add a z component? sorry my intuition tells me I am asking a stupid question because the dot product gets the angle between two Vectors, so I should I have to use the third component or?
this means (again sorry I am so confused)
local function Dotproduct(vA, vB, vC)
return vA.X*vB.X*vC.X + vA.Y*vB.Y*vC.Y + vA.Z *vB.Z*vC.Z
end