A robot's motion sensor measures along two axes that should be perpendicular, but manufacturing leaves them slightly skewed. Gram–Schmidt builds a true perpendicular frame from them: keep the first axis, subtract from the second its part along the first, and rescale both to length 1.