Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help me! Rotate algorithm

Help me! Rotate algorithm

Scheduled Pinned Locked Moved C / C++ / MFC
csscomalgorithmshelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KienNT78
    wrote on last edited by
    #1

    Hi all, I got a big trouble in rotate algorithm in my project. please see all pictures As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse. My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good. Please tell me how to solve this trouble. Thank you so much. I’m sorry, My English is not good!

    CPalliniC 1 Reply Last reply
    0
    • K KienNT78

      Hi all, I got a big trouble in rotate algorithm in my project. please see all pictures As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse. My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good. Please tell me how to solve this trouble. Thank you so much. I’m sorry, My English is not good!

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Maybe posting the relevant code will help. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      In testa che avete, signor di Ceprano?

      K 1 Reply Last reply
      0
      • CPalliniC CPallini

        Maybe posting the relevant code will help. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        K Offline
        K Offline
        KienNT78
        wrote on last edited by
        #3

        Thanks indeed, I just asked for algorithm, because I want to study algorithm working with rotate image! I want to learn algorithm that independent with code. If you know which book can help about algorithms, please give me book's name

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups