Results 1 to 3 of 3

Thread: Rotate about point

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2014
    Posts
    5
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Question Rotate about point

    Hello,

    At first I would like to apologize you for my english.

    I have a triangle, let's say like this
    Qt Code:
    1. static const QPoint T[3] = {
    2. QPoint(80, 80),
    3. QPoint(80, 88),
    4. QPoint(-80, 84)
    5. };
    6. painter.drawConvexPolygon(T, 3);
    To copy to clipboard, switch view to plain text mode 

    and I want to rotate this triangle about point a(-80.0,84.0). HHow can I do this?
    It will be in loop so i want to change only degrees. And when i want to change degrees it should be come back on the first position. Thanks for help.
    Last edited by Andree; 17th May 2014 at 22:24. Reason: spelling corrections

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.