code: public static double distanceSquared(Point p1, Point p2)
  	{
  		double x = p2.x - p1.x;
  		double y = p2.y - p1.y;
  		double z = p2.z - p1.z;
  		return x * x + y * y + z * z;
  	}
docs: Calculates the squared distance between two {@link Point points}.
  
  @param p1 fist point
  @param p2 second point
  @return the distance squared