class VectorMath {

	static IVector2 farthestTo(final IVector2 p, final Collection<IVector2> points)
	{
		Validate.notEmpty(points);
		IVector2 farthest = null;
		double farthestDist = Double.MIN_VALUE;
		for (IVector2 vec : points)
		{
			double dist = distancePPSqr(vec, p);
			if (farthestDist < dist)
			{
				farthestDist = dist;
				farthest = vec;
			}
		}
		Validate.notNull(farthest);
		return farthest;
	}

	@SuppressWarnings("unused") private  VectorMath();

}