Angle Between Two Vectors

Compute the angle between two vectors from their components using θ = arccos(a·b/(|a||b|)), returned in both radians and degrees.

📐 计算公式
θ=arccos(a·b/(|a||b|))。 x 轴与 y 轴单位向量 → 90°。

输入两向量的分量,求夹角。

Formula & Standard References

Item Formula / Note Source / Standard
Angle between vectorscos θ = (a·b)/(|a||b|)Analytic geometry
Dot producta·b = ΣaᵢbᵢVector algebra
Norm|a| = √(a·a)Euclidean norm
Range0–180 degreesGeometric definition
Orthogonalitya·b = 0 means perpendicularVector algebra
Radians1 rad = 180/π degreesAngle units
📌 计算说明
  • θ=arccos(a·b/(|a||b|))。
  • x 轴与 y 轴单位向量 → 90°。