Coder's Guild Mailing List

Two ?'s

Posted by Fox on 2001-03-18

Language:  C++ with MFC

Here's a mathematical question you can ask yourselves:  can you scale an object 
without using multiplication?  I have an object (coordinate plane kept at standard 
Windows with (0,0) as the upper left corner, and the y axis inverted) that I'd like to 
resize.  Because the resizing will be very small and gradual in amount, and important 
number changes would be lost to rounding, I'm wondering if it's possible to scale it up 
using addition and subtraction of the points....or would multiplication be easier?
______________

Next, I keep hearing about pixel-testing for collision detection.  I get the concept, but 
how is it done quickly, accurately and w/o errors?  I don't understand how pixel by 
pixel testing works or how to make it work.

thanks