Vector Dot Product Calculator (Game Dev)

Enter 2D or 3D vector components to compute the dot product, angle between vectors, and projection — with instant game dev context.

Dimensions

Vector A

Vector B

Angle Visualization

Results Click a row to copy

Dot Product (A · B)
Angle between A and B
cos(θ)
Scalar projection of A onto B
Scalar projection of B onto A
|A| (magnitude)
|B| (magnitude)

Formula Reference

A · B = Ax*Bx + Ay*By [ + Az*Bz in 3D ]
A · B = |A| |B| cos(θ)
θ = acos( A·B / (|A||B|) )
projBA = (A·B) / |B|
Copied!

Summary

Enter 2D or 3D vector components to compute the dot product, angle between vectors, and projection — with instant game dev context.

How it works

  1. Choose 2D or 3D mode using the toggle.
  2. Enter X, Y (and optionally Z) components for Vector A.
  3. Enter components for Vector B.
  4. Read the dot product, angle, projections, and relationship label instantly.
  5. Click any result row to copy its value to your clipboard.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu