On Monday 01 Nov 2010 3:07:03 pm Bert Freudenberg (JIRA) wrote:
Err, only polygons are the exception,
What if we treat rotated rectangles as polygons instead of putting them in a grip? i.e. have properties called angle and vertices. Compute vertices when angle is non-zero. Throw them away when angle becomes zero. This will change only a couple of methods and no flexshell craziness is required.
Subbu
On 02.11.2010, at 17:22, K. K. Subramaniam wrote:
On Monday 01 Nov 2010 3:07:03 pm Bert Freudenberg (JIRA) wrote:
Err, only polygons are the exception,
What if we treat rotated rectangles as polygons instead of putting them in a grip? i.e. have properties called angle and vertices. Compute vertices when angle is non-zero. Throw them away when angle becomes zero. This will change only a couple of methods and no flexshell craziness is required.
Subbu
Rectangles can have a variety of border styles.
I don't think just optimizing a few special cases is worth the additional complexity it would introduce.
- Bert -
etoys-dev@lists.squeakfoundation.org