Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ph0t0n

Pages: [1]
1
Graphics / Converting from Cartesian coordinate system to SFML.
« on: January 27, 2012, 02:16:09 am »
maybe i'm missing something, but I don't understand how ScreenCentre wouldn't cancel out.

dPos = dPos + ViewCentre + (ScreenCentre - ViewCentre);

i'm pretty sure that order of operation does not matter when all operations are addition and/or subtraction.

mathematically, the line above should simplify to:

 dPos += ScreenCentre;

Pages: [1]
anything