- Vector A — x
- 1
- Vector A — y
- 0
- Vector A — z
- 0
- Vector B — x
- 0
- Vector B — y
- 1
- Vector B — z
- 0
90.0000°
Open with these values90.0000°
Result: 90.0000 °Divide the dot product by the two magnitudes and take the inverse cosine. The answer is in degrees and always between 0 and 180: 0 means the vectors point the same way, 90 means they are perpendicular, 180 means they point opposite ways. Length does not matter, only direction.
90.0000°
Open with these values45.0000°
Open with these values27.2660°
Open with these valuesθ = arccos( (A · B) ÷ (|A| × |B|) ), in degrees
| ax, ay, az, bx, by, bz | cos θ | Angle |
|---|---|---|
| 1, 2, 3, 1, 2, 3 | 1 | 0.0000 |
| 2, 0, 0, 5, 0, 0 | 1 | 0.0000 |
| 1, 2, 2, 2, 2, 1 | 8 ÷ 9 | 27.2660 |
| 1, 1, 0, 1, 0, 0 | 1 ÷ √2 | 45.0000 |
| 1, 0, 0, 0, 1, 0 | 0 | 90.0000 |
| 1, 0, 0, -1, 0, 0 | −1 | 180.0000 |
Take the dot product, divide it by the product of the two magnitudes, then take the inverse cosine: θ = arccos( (A · B) ÷ (|A| × |B|) ). For (1, 0, 0) and (0, 1, 0) the dot product is 0, so θ = arccos(0) = 90°.
Degrees. The inverse cosine itself returns radians, and this calculator multiplies by 180 ÷ π before showing the result, so a right angle reads 90 and not 1.5708.
Always between 0° and 180°. It is the unsigned angle, so it never tells you which way you would have to rotate.
No. The formula divides both magnitudes out, so only the directions matter. Doubling a vector from (1, 0, 0) to (2, 0, 0) leaves the angle unchanged.
The zero vector (0, 0, 0) has no direction, so the angle to it is undefined. The formula would divide by its magnitude of zero, and the calculator shows no result instead of inventing one.
Information, not professional advice.
Diese Seite gibt es auch auf Deutsch.
Zu Deutsch wechseln