Re: [Gambas-user] algorithm for scaling 2D coordinates centered on an arbitrary point

2011-08-16 Thread Kevin Fishburne
On 08/17/2011 12:48 AM, Kevin Fishburne wrote: > I'm sure this is ridiculously simple, but my simple brain can't seem > to figure it out. > > I have a set of screen coordinates, xPos and yPos. I need to adjust > their positions based on a zoom level, CameraZoom. The zoom level is > relative to t

[Gambas-user] algorithm for scaling 2D coordinates centered on an arbitrary point

2011-08-16 Thread Kevin Fishburne
I'm sure this is ridiculously simple, but my simple brain can't seem to figure it out. I have a set of screen coordinates, xPos and yPos. I need to adjust their positions based on a zoom level, CameraZoom. The zoom level is relative to the center of the screen (swidth / 2, sheight / 2), and th