1. Multiply or add?
Add components to find a resultant vector. The dot product instead returns a scalar, useful for finding angles and resolving a vector along a direction.
A · B = AxBx + AyBy + AzBz
For a force in newtons and displacement in meters, their dot product is work in joules. This calculator does not assign physical units automatically.
2. Separate along and across.
Projection gives the part of A parallel to B. Subtract it from A to get the perpendicular remainder. B must be nonzero.
projB(A) = (A · B / |B|²) B
Choose “Resolve a vector”: A = (4,3,0), B = (2,0,0). The along component is (4,0,0) and the perpendicular component is (0,3,0).
3. Find the shortest path.
A × B points perpendicular to both directions. Normalize it to define a plane normal. Project P onto that normal to get the signed distance to the plane through the origin.
n = (A × B) / |A × B|
d = P · n; Q = P − dn
The 3–4 triangle has area 6. Its plane is z = 0; P = (1,1,5) is 5 units away and its closest point is (1,1,0).