Guest User

Untitled

a guest
Oct 26th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. AxisX = ((currentTouchPos.x - startTouchPos.x) / workZoneInPixX);
  2. AxisY = ((currentTouchPos.y - startTouchPos.y) / workZoneInPixY);
  3.  
  4. float FormatXY(x_or_y)
  5. Axis = ((currentTouchPos.x_or_y - startTouchPos.x_or_y) / workZoneInPixX_or_Y);
  6. return Axis;
  7.  
  8. AxisX = FormatXY(X)
  9.  
  10. AxisX = ((currentTouchPos.x - startTouchPos.x) / workZoneInPixX);
  11.  
  12. AxisX = FormatXY(Y)
  13.  
  14. AxisY = ((currentTouchPos.y - startTouchPos.y) / workZoneInPixY);
Add Comment
Please, Sign In to add comment