Creating rectangles

Hi,

Just a quick question from a newbie. If I have two control points being drawn by the user, which represent opposite corners of a rectangle, how do I then draw the rectangle. Do I need to generate two more control points?

Thanks!!

Hi

You can draw the rectangle with four LINES or with one QUAD in wire mode, but anyway you will have to compute the four points from the two control points moved by the operator.