fastjet 2.4.3
Functions

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 Point::x, and Point::y.

Referenced by VoronoiDiagramGenerator::generateVoronoi().

{
  Point *s1 = (Point*)p1, *s2=(Point*)p2;
  if(s1->y < s2->y) return(-1);
  if(s1->y > s2->y) return(1);
  if(s1->x < s2->x) return(-1);
  if(s1->x > s2->x) return(1);
  return(0);
}