Low-poly lab / signed geometry

Signed
Projection

Explore how a negative dot product reverses the projection while the residual remains perpendicular to the reference vector.

Signed products live geometry
A · B +10.26
A · R 0
s = (A·B)/|A|² +0.410
angle θ +55.0°
Vector A
Vector B
Projection
Residual R

R = B − projA(B). The signed scalar s determines whether the projection lies along or opposite A.

Vector controls drag canvas to orbit
P = ((A · B) / |A|²) A
R = B − P   /   A · R = 0
drag to orbit · wheel to zoom · double-click to reset view