Orthogonal projection

The projection of $\mathbf{y}$ onto a subspace is the point of the subspace closest to $\mathbf{y}$, the one whose error is perpendicular to the whole subspace, and with an orthogonal basis it is a sum of projections onto lines.

From Linear Algebra.