On Fri, Apr 3, 2009 at 7:24 AM, William <william.caine...@gmail.com> wrote:
>
> //i rotate the cube using the following
> //xRot,yRot are inc or decremented to change angles
> gl.glRotatef(xRot, 1.0f, 0.0f, 0.0f);
> gl.glRotatef(yRot, 0.0f, 1.0f, 0.0f);
>
> So yes i have access to yRot and xRot but they numbers range from -900
> to +900.  I figure I can used them somehow to tell what is rotated but
> I am unsure how.  i just pass them in and it magically rotates for
> me.  so i am unsure how to tell from the numbers what angle the cube
> is at.
>
> can I take a trig function to them or what?  or do i take the xRot %
> 360 and the remainder is what degree I am at.  Or is xRot in radians
> so I must convert it.

The angles are in degrees.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to