Polygon Polygon(
[array
$pts = null]
)
|
|
Expands the Arc by the specified number of pixels.
Parameters:
|
array |
$pts: |
An array of Point objects that form the polygon. |
void AddPoint(
Point
$pt
)
|
|
Adds a new Point to the polygon.
Parameters:
|
Point |
$pt: |
The Point to add. |
void FromArc(
Arc
$arc, [int
$step = 10]
)
|
|
Makes this Polygon the same as the specified Arc $arc.
Parameters:
|
Arc |
$arc: |
The Arc to model. |
|
int |
$step: |
Smoothness of the generated curve. |
void FromEllipse(
Ellipse
$el, [int
$step = 10]
)
|
|
Makes this Polygon the same as the specified Ellipse $el.
Parameters:
|
Ellipse |
$el: |
The Ellipse to model. |
|
int |
$step: |
Smoothness of the generated curve. |
Makes this Polygon the same as the specified Rect $r.
Parameters:
|
Rect |
$r: |
The Rect to model. |
Returns the center point of the polygon.