php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #11297 swf_shapecurveto() description missing an element
Submitted: 2001-06-05 17:06 UTC Modified: 2002-02-13 21:45 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: peter at petermoulding dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.5 OS: Not relevant
Private report: No CVE-ID: None
 [2001-06-05 17:06 UTC] peter at petermoulding dot com
bezier curves need three points. I think the following sentence:
"The swf_shapecurveto() function draws a quadratic bezier curve from the x
coordinate given by x1 and the y coordinate given by y1 to the x coordinate given by
x2 and the y coordinate given by y2."

should say:
"The swf_shapecurveto() function draws a quadratic bezier curve from the
current location, through the x coordinate given by x1 and the y coordinate given by y1,
to the x coordinate given by x2 and the y coordinate given by y2."

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-07 19:30 UTC] alindeman@php.net
I don't really know much about quadratic bezier curves.  Can anybody verify that this is correct?

 [2002-02-13 21:18 UTC] peter at petermoulding_but_not_spam dot com
Besier curves based on two points are a straight line.
Three points produce a quadratic equation and a curve.
Four points produce a cubic equation and a spline or S curve. Splines are the fancy things used in Postscript to draw fonts.

Three point systems are used in graphics programs to make curves. You click the FROM point then the TO point then you drag the third point, the mid point, to develop the curve. In a parameter based system, as in functions, the order of the points may be From, Mid, To, or From, To, Mid, depending on the language. swf_shapecurveto() appears to be From, Mid, To.
 [2002-02-13 21:45 UTC] alindeman@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 17:01:27 2024 UTC