Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (x1 >= m_x &&  y1 >= m_y) {
  2.    //I
  3.    //cout << "I" << endl;
  4.            
  5.     if (x1 >= x2 && y1 <= y2)
  6.    zRot += dR;
  7.     else
  8.     zRot -= dR;
  9.            
  10.     }
  11.     else   
  12.     if (x1 >= m_x &&  y1 <= m_y) {
  13.    //II
  14.    //cout << "II" << endl;
  15.            
  16.     if (x1 >= x2 && y1 >= y2)
  17.    zRot -= dR;
  18.     else
  19.     zRot += dR;
  20.     }  
  21.     else   
  22.     if (x1 <= m_x &&  y1 <= m_y) {
  23.    //III
  24.    //cout << "III" << endl;
  25.    if (x1 <= x2 && y1 >= y2)
  26.     zRot += dR;
  27.     else
  28.     zRot -= dR;
  29.     }  
  30.     else   
  31.     if (x1 <= m_x &&  y1 >= m_y) {
  32.     //IV
  33.     //cout << "IV" << endl;
  34.    if (x1 >= x2 && y1 >= y2)
  35.    zRot += dR;
  36.     else
  37.     zRot -= dR;
  38.     }
  39.  
  40. ---------------------------------------------------------
  41.  
  42.     if (x1 >= m_x &&  y1 >= m_y || x1 <= m_x &&  y1 <= m_y)
  43.      {
  44.       if (x1 > x2 && y1 < y2)
  45.       zRot += dR;
  46.       else if (x1 < x2 && y1 > y2)
  47.       zRot += dR;
  48.           else
  49.       zRot -= dR;
  50.      }
  51.     else if (x1 >= m_x &&  y1 <= m_y || x1 <= m_x &&  y1 >= m_y)
  52.      {
  53.         //II
  54.      if (x1 >= x2 && y1 >= y2)
  55.       zRot -= dR;
  56.      else if (x1 >= x2 && y1 >= y2)
  57.      zRot += dR;
  58.          else
  59.      zRot -= dR;
  60.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement