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.
|