Skip to content

Instantly share code, notes, and snippets.

View yohann's full-sized avatar
💭
Ruby, Usually on Rails

Yohann Candido yohann

💭
Ruby, Usually on Rails
  • Western Governors University
  • Salt Lake City, UT
  • 20:17 (UTC -06:00)
  • LinkedIn in/yohann-candido
View GitHub Profile
@yohann
yohann / distanceBetweenTwoPoints.java
Last active December 31, 2017 14:39
Java method for to get the distance between two points
private int distanceBetweenTwoPoints(Point a,Point b)
{
return (int) Math.sqrt(Math.pow((b.getX()-a.getX()), 2) + Math.pow((b.getY()-a.getY()),2) );
}