Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: rotation problem

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Jan 2013
    Posts
    2

    rotation problem

    hai ,
    i am new to opengl.
    i want to rotate a line around a circle
    can anyone help me

  2. #2
    Newbie Newbie
    Join Date
    Jan 2013
    Posts
    2
    i wnt to rotate the line around the outer edge of the cirlce

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,101
    translate the line rotation point to the origin, rotate by x degrees, calculate the new point on the circle to match this rotation, translate the line to the new point

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •