Angles between vectors in 3D
About this app
Explore dot products, magnitudes, projections and angles. Switch between vectors and lines to compare directed angles with acute intersection angles.
With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.
Angles from the dot product
The angle φ between two vectors a and b follows from the dot product: cos φ = (a·b)/(|a|·|b|). If a·b is positive the angle is acute, if a·b = 0 the vectors are perpendicular, and if it is negative the angle is obtuse. Geometrically, a·b equals |b| times the length of the projection of a onto b, which is |a|·cos φ. For lines only the direction matters, so one uses |a·b| and always gets the acute angle of intersection.
What the app shows
Two arrows a and b start at the origin. A coloured arc shows φ and changes colour for acute, right and obtuse angles. The values panel computes a·b, |a|, |b|, cos φ and φ live. A dashed segment shows the projection of a onto b. In lines mode the absolute value is used, so the acute angle between two lines appears.
Try it yourself
Drag the spheres at the arrow tips or type coordinates and look for a position with a·b = 0, where the arc switches to a right angle. Then make the angle obtuse and switch to lines: 120°, for example, becomes 60°. With an obtuse angle, notice that the projection falls onto the backward extension of b and the dot product turns negative.
Frequently asked questions
- How do you find the angle between two vectors?
- Use cos φ = (a·b)/(|a|·|b|). Compute the dot product, divide by the product of the magnitudes and take the inverse cosine. The result lies between 0° and 180°.
- When are two vectors perpendicular?
- Exactly when their dot product is zero, a·b = 0, and neither is the zero vector. Then cos φ = 0 and φ = 90°.
- What is the difference between the angle of two vectors and of two lines?
- Vectors have an orientation, so their angle can be up to 180°. Lines only have a direction without sign, and the angle of intersection is given as the acute angle. That is why |a·b| is used in the numerator for lines.
- What can I change in the app?
- You drag the tips of a and b or enter coordinates, switch between vectors and lines, and see the projection of a onto b. Every intermediate value up to the angle is shown live.
Subject: Analytic geometry
More from Analytic geometry
- Point-to-line distance in 3D
- Distance between skew lines in 3D
- Planes in space
- Coordinates after Descartes: geometry becomes algebra (3D)
- Right-handed systems in 2D and 3D
- Shoelace method: the cross product
- Dot product: coordinate formula from the definition
- Cross and scalar triple products in 3D
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps