Pythagorean-Hodograph Curves: Algebra and Geometry