> Would you mind telling us what x1, y1, x2, and y2 are? The coordinates of the points P, and Q... If you were expecting numbers, I have to let you down: I'm looking for a general solution to be able to program the rendering of a simple pendulum, when the cord is loose. PG