Advertisement
Guest User

yolo

a guest
Nov 27th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. for(int a = 0; a <points.length;a++){
  2. for(int b = a+1; b <points.length;b++){
  3. for(int c = b+1;c <points.length;c++){
  4. for(int d = c+1; d<points.length;d++){
  5. Double slopeAC = points[a].slopeTo(points[c]);
  6. double slopeAB = points[a].slopeTo(points[b]);
  7. double slopeAD= points[a].slopeTo(points[d]);
  8. Point[] temp = new Point[4];
  9. temp[0] = points[a];
  10. temp[1] = points[b];
  11. temp[2] = points[c];
  12. temp[3] = points[d];
  13. if(slopeAB == slopeAC &&slopeAB == slopeAD){
  14.  
  15. }
  16. }
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement