Vector dot product
Compute the scalar dot product of two three-dimensional vectors.
Find the smaller angle between two nonzero three-dimensional vectors.
Find the smaller angle between two nonzero three-dimensional vectors.
Vector A x: 1; Vector A y: 2; Vector A z: 3; Vector B x: 4; Vector B y: 5; Vector B z: 6.
Angle: 12.93 degrees.
The angle is between zero and 180 degrees. Both vectors must be nonzero; the dot-product cosine is limited at both rounding boundaries.
Results are rounded for display; calculations use unrounded values. Read our calculation methodology.
Find the smaller angle between two nonzero three-dimensional vectors.
Angle = acos((((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))-1+abs((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))+1))/2+1-abs(((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))-1+abs((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))+1))/2-1))/2)*180/pi degrees
| Input | What to enter |
|---|---|
| Vector A x | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Vector A y | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Vector A z | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Vector B x | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Vector B y | Enter a number of at least -1000000000000 and no more than 1000000000000. |
| Vector B z | Enter a number of at least -1000000000000 and no more than 1000000000000. |
The angle is between zero and 180 degrees. Both vectors must be nonzero; the dot-product cosine is limited at both rounding boundaries.
Angle = acos((((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))-1+abs((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))+1))/2+1-abs(((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))-1+abs((ax*bx+ay*by+az*bz)/sqrt((ax^2+ay^2+az^2)*(bx^2+by^2+bz^2))+1))/2-1))/2)*180/pi degrees