This release adds scale() and translate() methods. It modifies move(), rotate(), and bRect() methods to correctly handle Polygon lists. It fixes a bug in how the perturb function is called. It was being incorrectly called for intersections between lines when the intersection occurred outside the line segments. It adds some more examples of degenerate vertices in the polyExample.php file, and adds a section in the readme file about the degenerate vertex issue.
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.
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.