Truncation and round off

Andreas Raab andreas.raab at gmx.de
Sun Feb 5 20:22:25 UTC 2006


nicolas cellier wrote:
> Putting a constraint like:
>  aRectangle truncated extent = aRectangle extent truncated
> whatever the coordinate transform is does not sound easy: maths say it is 
> simply impossible even without a rotation (unless rectangle sides are 3*n and 
> 4*n).

Huh? And why would that be? The correct solution for that sort of 
truncation is obviously:

Rectangle>>truncated
   ^Rectangle origin: self origin truncated extent: self extent truncated

I see nothing that suggests there would be any difficulty.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list