Loading…

Vector Projection Calculator in 3d

Math Geometry • Three Dimensional Geometry

View all topics

Vector Projection Calculator – Scalar & Vector Projection in 3D

Find the scalar projection \(\mathrm{comp}_B(A)=\dfrac{A\cdot B}{\lVert B\rVert}\) and the vector projection \(\mathrm{proj}_B(A)=\dfrac{A\cdot B}{\lVert B\rVert^2}B\) in 3D. The graph shows the “shadow” of \(A\) on the direction of \(B\).

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Vectors

Projection is defined only when \(B\neq 0\). If \(B=0\), \(\mathrm{comp}_B(A)\) and \(\mathrm{proj}_B(A)\) are undefined.
View & output options

Drag to rotate • Shift+drag to pan • wheel/trackpad to zoom. “Reset view” fits all vectors.

Ready
3D projection view (interactive)

\(A\) and \(B\) start at the origin. The orange vector is \(\mathrm{proj}_B(A)\) (the shadow of \(A\) on the direction of \(B\)).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the difference between scalar and vector projection?

Scalar projection comp_B(A) is a signed length (a number). Vector projection proj_B(A) is a vector along B whose magnitude equals that scalar projection.

Why is proj_B(A) undefined when B = 0?

Projection needs a direction. If B is the zero vector, it has no direction and |B|=0 makes the formulas divide by zero.

What does A_perp represent?

A_perp = A − proj_B(A) is the part of A perpendicular to B. It measures how far A deviates from the direction of B.

How does projection relate to angle?

|proj_B(A)| = |A|cosθ and |A_perp| = |A|sinθ when B is nonzero, where θ is the angle between A and B.