Compute the dot product a·b = a_x·b_x + a_y·b_y of two 2D vectors, including the projection length of a onto b.
输入两向量分量,求点积与 a 在 b 上的投影长度。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Dot product | a·b = aₓbₓ + a_yb_y | Vector algebra |
| Geometric form | a·b = |a||b|cos θ | Analytic geometry |
| Projection | Projection scalar = (a·b)/|b| | Vector projection |
| Sign meaning | Positive acute, negative obtuse | Vector algebra |
| Orthogonality | a·b = 0 perpendicular | Geometric criterion |
| Distributive | a·(b+c) = a·b + a·c | Vector algebra laws |
工作与生活中的相关计算与查询。