View Single Post
Old 01-07-2004, 09:53 AM   #2
Burr
Member
 
Join Date: Apr 2002
Posts: 123
Burr is on a distinguished road
I'm only a beginner programmer, but I thought I'd mention that you only have to input or store three points to define a square (or any other rectangle). The fourth point can be derived from the other three. Example: for given coordinates (20,15), (40,15), and (40,35), the fourth point must be (20,35) for the object to be rectangular.

I suppose you might use the redundancy for error checking, but getting rid of the inconvenience might be worth the occassional error, since you will likely be proofreading/editing each area anyway.
Burr is offline   Reply With Quote