
double mininter(             /* Calculates the minimum inter-point distance 
				without edge correction */
		coord *points,       /* An array of positions */
		int n);              /* Number of points */

double mininter_tor(      /* Calculates min-inter on a torus */
		    coord *points,       /* An array of positions */
		    int n,               /* Number of points */
		    double a,            /* Length of box in x-direction */
		    double b);           /* Length of box in y-direction */

double secinter(           /* Calculates the the second smallest inter-point 
			      distance without edge correction */
		coord *points,       /* An array of positions */
		int n);              /* Number of points */

double secinter_tor(      /* Calculates sec-inter on a torus */
		    coord *points,       /* An array of positions */
		    int n,               /* Number of points */
		    double a,            /* Length of box in x-direction */
		    double b);           /* Length of box in y-direction */

void inter(             /* Calculates the 1st, 2nd, 3rd and 4th smallest 
			   inter-point distance without edge correction */
	   coord *points,       /* An array of positions */
	   int n,               /* Number of points */
	   double *first,
	   double *second,
	   double *third,
	   double *fourth);

void inter_tor(             /* Calculates the 1st, 2nd, 3rd and 4th smallest 
			       inter-point distances on a torus */
	       coord *points,       /* An array of positions */
	       int n,               /* Number of points */
	       double a,            /* Length of box in x-direction */
	       double b,            /* Length of box in y-direction */
	       double *first,
	       double *second,
	       double *third,
	       double *fourth);
