private Pair<EnumFacing, Point> getClosest(List<Pair<EnumFacing, Point>> points)
	{
		double distance = Double.MAX_VALUE;
		Pair<EnumFacing, Point> ret = null;
		for (Pair<EnumFacing, Point> pair : points)
		{
			double d = Point.distanceSquared(src, pair.getRight());
			if (distance > d)
			{
				distance = d;
				ret = pair;
			}
		}

		return ret;
	}
private Pair < EnumFacing , Point > getClosest ( List < Pair < EnumFacing , Point > > points ) { double distance = Double . MAX_VALUE ; Pair < EnumFacing , Point > ret = null ; for ( Pair < EnumFacing , Point > pair : points ) { double d = Point . distanceSquared ( src , pair . getRight ( ) ) ; if ( distance > d ) { distance = d ; ret = pair ; } } return ret ; }
Gets the closest {@link Point} of the origin.

@param points the points
@return the closest point