PHP Classes

PHP Weighted Voronoi Diagram: Render an additively weighted voronoi diagram

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 145 All time: 9,137 This week: 524Up
Version License PHP version Categories
awvd 0.1BSD License4Algorithms, Graphics, Geography


This package can render an additively weighted Voronoi diagram.

There is a package that takes a set of points of builds a Voronoi tree.

Another class renders the additively weighted diagram from the points defined by the Voronoi tree.

Innovation Award
PHP Programming Innovation award nominee
October 2014
Number 8

Prize: One year server license IP to country, region, city, latitude, longitude, ZIP code, time zone, area code database
Voronoi diagrams are used to present regions on a plane defined by points that are close to each other.

This class that can render the additively weighted variation of a Voronoi diagram.

Manuel Lemos
Picture of Chi H.
  Performance   Level  
Name: Chi H. <contact>
Classes: 28 packages by
Country: France France
Age: 39
All time rank: 34122 in France France
Week rank: 51 Up3 in France France Up
Innovation award
Innovation award
Nominee: 22x

Winner: 3x



* Copyright notice
* (c) 2014 Chi Hoang (
* All rights reserved
// Turn off all error reporting

// example 1
for (
// $set[]=array($tree[$i],$tree[$i+1],$tree[$i+2]);
$tri=new voronoi();

$nearest=new nearestneighbor();
//$p=new Point(12,322);
$p=new Point(60,60);
//$p=new Point(26,229);

//for ($i=0,$end=count($tree);$i<$end;$i+=2)
// $set[]=array($tree[$i],$tree[$i+1]);
//$tri=new voronoi();

//$nearest=new nearestneighbor();
//$p=new Point(12,322);
//$p=new Point(160,160);
//$p=new Point(326,229);
//$p=new Point(188,298);


// experimental point-in-polygon

  • screenshot.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example class
Plain text file main.php Class main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,137
This week:524Up