On Tue, Dec 23, 2008 at 1:57 PM, Mic Pringle <[email protected]> wrote:
> > Hi, > > Does anyone know if its possible to find out the corner point > locations of a quad after it's been rotated using glRotatef ? There is no functionality in the API for this, however you can calculate where it will be using trigonometry or (arguably simplex) matrices. Given your rotation by 5 degrees (I assume you meant about the y-axis), the trig solution would look like this: angle = math.radians(5.0) new_x = x * math.cos(angle) new_y = y * math.sin(angle) - Tristam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
