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 vectors | cos θ = (a·b)/(|a||b|) | Analytic geometry |
| Dot product | a·b = Σaᵢbᵢ | Vector algebra |
| Norm | |a| = √(a·a) | Euclidean norm |
| Range | 0–180 degrees | Geometric definition |
| Orthogonality | a·b = 0 means perpendicular | Vector algebra |
| Radians | 1 rad = 180/π degrees | Angle units |
📌 計算說明
- θ=arccos(a·b/(|a||b|))。
- x 軸與 y 軸單位向量 → 90°。