Introduction to Computer Graphics
Lecture 9
2D Curves
Don Herbison-Evans
don@it.uts.edu.au
(updated 21 October 2004)
TYPES OF CURVES
CIRCLES
Formulations:
POLNOMIALS
There is a unique polynomial through n points with degree (n-1).
The easiest formulation for it is due to
Lagrange :
Note that each y value is multiplied by a polynomial that is unity
at its own x value and zero at all the other x values.
Problems as it oscillates to values outside the convex hull of the points.
SPLINES
Composed of pieces of low order polynomials, typically cubics.
Pieces are joined to give continuity of value, slope, and curvature.
Still formulated so that the value at any point is a sum over some y values,
each of which is multiplied by a blending polynomial
the values of which sum to unity.
Normally used in parameterised form:
Various sorts of splines: