home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / diverses / leda / incl / plane_al.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-15  |  1.4 KB  |  57 lines

  1. /*******************************************************************************
  2. +
  3. +  LEDA  2.1.1                                                 11-15-1991
  4. +
  5. +
  6. +  plane_alg.h
  7. +
  8. +
  9. +  Copyright (c) 1991  by  Max-Planck-Institut fuer Informatik
  10. +  Im Stadtwald, 6600 Saarbruecken, FRG     
  11. +  All rights reserved.
  12. *******************************************************************************/
  13.  
  14.  
  15.  
  16. #ifndef PLANE_ALGH
  17. #define PLANE_ALGH
  18.  
  19. #include <LEDA/plane.h>
  20. #include <LEDA/graph.h>
  21.  
  22. declare2(GRAPH,point,int)
  23. declare2(GRAPH,point,point)
  24.  
  25.  
  26. //------------------------------------------------------------------------------
  27. // line sweep for straight line segments
  28. //------------------------------------------------------------------------------
  29.  
  30. overload SWEEP_SEGMENTS;
  31.  
  32. void SWEEP_SEGMENTS(list(segment)&, list(segment)&, GRAPH(point,int)&);
  33.  
  34. void SWEEP_SEGMENTS(list(segment)&, list(point)&);
  35.  
  36.  
  37. inline void SEGMENT_INTERSECTION(list(segment)& L, list(point)& P)
  38. { SWEEP_SEGMENTS(L,P); }
  39.  
  40.  
  41. //------------------------------------------------------------------------------
  42. // convex hull
  43. //------------------------------------------------------------------------------
  44.  
  45. polygon CONVEX_HULL(list(point));
  46.  
  47.  
  48. //------------------------------------------------------------------------------
  49. // voronoi diagrams
  50. //------------------------------------------------------------------------------
  51.  
  52. void VORONOI(list(point)& sites, double R, GRAPH(point,point)& VD);
  53.  
  54.  
  55. #endif
  56.