[squeak-dev] WarpBlt geometry puzzle

Stéphane Rollandin lecteur at zogotounga.net
Tue Feb 16 12:30:40 UTC 2021


Hello all,

I can't figure this out:

Given an instance of WarpBlt, what is the formula giving the destination 
of a specific original point?

I only need one point (for the record, the offset of a Form to be 
rotated and magnified). The code in WarpBlt works incrementaly by 
running over all original points. At the moment I can get the result by 
hacking into that loop, but it is slow and ugly. There has to be a 
direct formula, but I can't find it. Any idea?

Stef


More information about the Squeak-dev mailing list