Check both parts
The projection must lie on the line, and b minus that point must be perpendicular to the line. A perpendicular arrow pointing the other way does not reconstruct b. For a nonzero direction a, the coefficient is (b · a) / (a · a).
RECALLWEAVE / VECTOR GEOMETRY
Change a vector and the direction of a line through the origin. The projection stays on the line; the residual shows what is left over. Try the course example, then compare a longer direction for the same line.
Coordinates use perpendicular axes with equal units. Enter values from −6 to 6 in steps of 0.25.
The gray line continues in both directions. The short gray arrow marks a; changing its length alone keeps the line in the same place.
Shown values are rounded to three decimal places. In the exact geometry, the residual's dot product with the line direction is zero.
The projection must lie on the line, and b minus that point must be perpendicular to the line. A perpendicular arrow pointing the other way does not reconstruct b. For a nonzero direction a, the coefficient is (b · a) / (a · a).
The twelve-question lesson continues from displacements and unit directions to dot products, projection, matrix actions and operation order. Download the local JSON, choose it in RecallWeave's deck importer, review it, and explicitly start the lesson.