[Math] Dot Product of Position and Direction Vectors

3dvectors

Assume that we have one normalised 3D vector (D) representing direction and another 3D vector representing a position (P).

How can we calculate the dot product of D and P?

If it was the dot product of two normalised directional vectors, it would just be one.x * two.x + one.y * two.y + one.z * two.z.

Best Answer

The exact same way you did with "one" and "two" $Dx \times Px + Dy \times Py + Dz \times Pz$

Related Question