tuxmartin

PGRF1 - c 7.11.2011

Nov 7th, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. public class Usecka {
  2.         public int x1,x2,y1,y2;
  3.         float k, q;
  4.  
  5.         public void prohod() {
  6.             if (y2 < y1) {
  7.                 int p;
  8.                 p = y1;
  9.                 y1 = y2;
  10.                 y2 = p;
  11.                 p = x1;
  12.                 x1 = x2;
  13.                 x2 = p;
  14.  
  15.             }
  16.         }
  17.        
  18.         public void vypocti() {
  19.             k = (float) (x2 - x1) / (y2 - y1);
  20.             q = (float) x1 - (k * y1);
  21.                        
  22.         }
  23.        
  24.         public void zkrat() {
  25.            
  26.         }
  27.        
  28.         public boolean jePrusecik(int y) {
  29.             //return (y > y1) && (y <= y2);
  30.             if () {
  31.                
  32.             }
  33.             //return false;        
  34.         }
  35.        
  36.         public int vypoctiPrusecik(int y) {
  37.             return 0;  
  38.         }
  39.  
  40.  
  41. }
  42.  
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment