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 producta·b = aₓbₓ + a_yb_yVector algebra
Geometric forma·b = |a||b|cos θAnalytic geometry
ProjectionProjection scalar = (a·b)/|b|Vector projection
Sign meaningPositive acute, negative obtuseVector algebra
Orthogonalitya·b = 0 perpendicularGeometric criterion
Distributivea·(b+c) = a·b + a·cVector algebra laws
📌 计算说明
  • a·b = a_xb_x + a_yb_y。
  • 3,4·1,0 = 3。