Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by h4 ( 17 years ago )
p1.setX(0);
  p1.setY(0);
  p2.setX(3);
  p2.setY(0);
  
  System.out.println(p1.calcDistance(p2));
  System.out.println(p2.calcDistance(p1));

 

Revise this Paste

Your Name: Code Language: