polygon

polygon is a set of PHP classes that can be used to perform different types of geometric operations with arbitary polygons. It provides generic polygon and vertex classes that support mixing lines and arc segments between vertices. Polygons may be self-intersecting, convex, or concave. It provides means to perform intersection and union operations with the shapes and to compute shape clipping.

Tags Scientific/Engineering Mathematics Software Development Libraries php classes multimedia Graphics
Licenses GPL
Implementation PHP

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  17 Apr 2006 00:37
  • Rrelease-after

Changes: A divide-by-zero error when an attempt is made to find an intersection between two arcs with the same center point was fixed. An undefined variable warning for $last in the boolean() method was fixed. Protection against a divide-by-zero warning in the angle() method was added. A bug in the ints() function was fixed. The perturb() function was being called with uninitialized parameters. This caused incorrect clipping in cases where a vertex on one polygon exactly fell on a line segment of the other polygon.

  • Rrelease-mid
  •  05 Sep 2005 00:24
  • Rrelease-after

Changes: The following methods were added to the polygon Class in response to a user request: Move($dx,$dy), which moves a polygon; Rotate($xc,$yc,$angle), which rotates a polygon; and isPolyInside($p), which tests if a polygon is inside another polygon. New class documentation (readme.htm) was created. Old HTML documentation was removed from polyExample.php. Screen shots of the example images were added to the class homepage. Software license language was added to all source files.

  • Rrelease-mid
  •  01 Sep 2005 00:07
  • Rrelease-after

No changes have been submitted for this release.

9b05239d80de5665840ba1d2a276f00a_thumb

Project Spotlight

Maarch LetterBox

A mail-management-oriented DMS application based on Maarch Framework.

No-screenshot

Project Spotlight

Web-bench

Simple web server benchark.