Guest User

Untitled

a guest
Jan 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. string kampania(NapBon x1, NapBon y1, NapBon x2, NapBon y2){
  2.  
  3. a = (x2 - y2) / (x1 - y1); //
  4. b = ((x1 * y2) - (x2 * y1)) / (x1 - y1); // bledne
  5.  
  6. NapBon a;
  7. NapBon b;
  8.  
  9. a.x = (x2.x - y2.x) / (x1.x - y1.x);
  10. b.x = ((x1.x * y2.x) - (x2.x * y1.x)) / (x1.x - y1.x);
  11.  
  12. double tmp = a * 100.0 + 0.5; //
  13. a = floor(tmp) / 100.0; // bledne
  14.  
  15. NapBon tmp;
  16. tmp.x = a.x * 100.0 + 0.5;
  17. a.x = floor(tmp.x) / 100.0;
Add Comment
Please, Sign In to add comment