PHP Classes

Polygon: Perform geometric operations on polygons

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 3,729 All time: 885 This week: 38Up
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: 57
All time rank: 39748 in United States United States
Week rank: 215 Up24 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Screenshots (8)  
  • poly_ex1.gif
  • poly_ex2.gif
  • poly_ex3.gif
  • poly_ex4.gif
  • poly_ex5.gif
  • poly_ex6.gif
  • poly_ex7.gif
  • poly_ex8.gif
  Files folder image Files (12)  
File Role Description
Accessible without login Plain text file polyExample.php Example Example - See screen shots for output
Accessible without login Plain text file polygon.php Class Polygon class
Accessible without login HTML file readme.htm Doc. Documentation
Accessible without login Plain text file vertex.php Class vertex and segment objects used by polygon

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,729
This week:0
All time:885
This week:38Up
User Ratings User Comments (3)
 All time
Utility:84%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:88%StarStarStarStarStar
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:342