2D Dot Product Calculator
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 = a_x·b_x + a_y·b_y;a 在 b 上投影长度 = a·b ÷ |b|(|b| = √(b_x²+b_y²))。校验:a、b 的四个坐标均必填,空白不等于 0;|b|=0 时点积照常输出,投影长度显示“无定义”。判据:无固定分级,投影带符号,点积为 0 即两向量垂直。
输入两向量分量,求点积与 a 在 b 上的投影长度。
Formula & Standard References
| 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 |
📌 计算说明
- a·b = a_xb_x + a_yb_y。
- 3,4·1,0 = 3。