Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package pakiet1;
- /**
- *
- * @author Student
- */
- public class UtilClass {
- public static int obliczOdleglosc(int x1, int y1, int x2, int y2)
- {
- PointKY point1 = new PointKY(x1,y1);
- PointKY point2 = new PointKY(x2,y2);
- int distance = point1.calculateDistance(point2);
- return distance;
- }
- }
Add Comment
Please, Sign In to add comment