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°。