Polygon: Perform geometric operations on polygons

Recommend this page to a friend!
  Info   Screenshots   View files (4)   Download .zip   Reputation   Support forum (14)   Blog    
Ratings Unique User Downloads Download Rankings
69%Total: 3,678 This week: 1All time: 899 This week: 255
Version License PHP version Categories
polygon 1.6GNU General Publi...3Algorithms, Geography, Math
Description Author

This package can be used to perform different types of geometric operations with polygons.

It provides generic polygon and vertex classes that support mixing lines and arc segments between vertices. Polygons may be self-intersecting.

It provides means to perform boolean operations AND and OR (Intersect and Union) with the shapes and compute shape clipping (A-B and B-A).

Innovation Award
PHP Programming Innovation award nominee
August 2005
Number 5

Prize: One book of choice by SAMS
Certain types of image manipulation applications need to execute operations on images that involve shapes, for instance to define clipping areas. Such areas are defined by individual polygons or combinations of multiple polygons.

This class provides means to perform operations on shapes defined by polygons delimited by lines or arcs. It is useful for image manipulation applications like, for instance, those that involve maps.

Manuel Lemos
Picture of Brenor Brophy
Name: Brenor Brophy <contact>
Classes: 2 packages by
Country: United States United States
Age: 52
All time rank: 39647 in United States United States
Week rank: 259 23 in United States United States
Innovation award
Innovation award
Nominee: 1x

  • poly_ex6.gif
  • poly_ex7.gif
  • poly_ex8.gif
  • poly_ex5.gif
  • poly_ex4.gif
  • poly_ex2.gif
  • poly_ex3.gif
  • poly_ex1.gif
File Role Description
polyExample.php Example Example - See screen shots for output
polygon.php Class Polygon class
readme.htm Doc. Documentation
vertex.php Class vertex and segment objects used by polygon

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:899
This week:255
User Ratings User Comments (3)
 All time

For more information send a message to info at phpclasses dot org.