Compute the dot product of two 3D vectors and the included angle.
输入两向量各分量,求点积。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Algebraic definition | a·b = a1b1 + a2b2 + a3b3 (scalar) | Basic vector operation |
| Geometric definition | a·b = |a||b|cosθ with θ the angle | Geometric meaning of dot product |
| Orthogonality | a·b = 0 ⇔ perpendicular (nonzero vectors) | Orthogonality definition |
| Projection use | Scalar projection of a on b = a·b ÷ |b| (= a·b for unit b) | Projection formula |