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。