Vector Projection

Drag the blue vector b and the red vector a. Watch how the projection and error e adjust in real-time.

1. Scalar Projection (x̂)

x̂ =
aTb aTa
=
0 0
= 0.00

2. Projection Vector (b̂)

b̂ = a = 0.00
0.0 0.0
=
0.0 0.0

Orthogonality Check

The error vector e is always perpendicular to a.

aTe = 0.00

Enjoying this visualization?

Get the full textbook:
Linear Algebra for Computer Science

Grid: 1 unit / line