Voronoi.cc File Reference

#include <stdio.h>
#include "fastjet/internal/Voronoi.hh"
Include dependency graph for Voronoi.cc:

Go to the source code of this file.

Functions

int scomp (const void *p1, const void *p2)

Function Documentation

int scomp ( const void *  p1,
const void *  p2 
)

Definition at line 1042 of file Voronoi.cc.

References fastjet::Point::x, and fastjet::Point::y.

01043 {
01044   Point *s1 = (Point*)p1, *s2=(Point*)p2;
01045   if(s1->y < s2->y) return(-1);
01046   if(s1->y > s2->y) return(1);
01047   if(s1->x < s2->x) return(-1);
01048   if(s1->x > s2->x) return(1);
01049   return(0);
01050 }


Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1