pghull

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 11:19, 20 April 2011 by 193.171.195.48 (talk) (Created page with '{{DISPLAYTITLE:{{SUBPAGENAME}}}} Calculate the hull polygon of two polygons. ;Usage: :<code>pghull(<var>X</var>, <var>IX</var>, <var>Y</var>, <var>IY</var>)</code> :;<var>X</var>…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Calculate the hull polygon of two polygons.

Usage
pghull(X, IX, Y, IY)
X
a closed point-list or a polygon-stream defining one or more polygons.
IX
The index of the polygon of X to be tested; 0 <= IX < pgget(X)
DX, DY
shift values for x and y (default=0, no shift)
  • shift the center point <xc,yc> of XIX
<x[i] , y[i]> -> <x[i]+DX , y[i]+DY>
KX, KY
scaling factors; both factors must be greater than zero (default=1, no scaling)
  • scale the distances of corners of XIX to the center point
<x[i] , y[i]> -> <(x[i]-xc)*KX+xc , (y[i]-yc)*KY'+yc>
A
rotation angle in degree (default=0, no rotation); a scaling factors (default=1)
  • rotate the polygon around the center point
Result
The result r is a polygon-stream containing the transformed XIX.
See also
pginit, pgget, pgitest, pgiline, pgxgrid, pgsplit, pghull

<function list>

Navigation menu

Personal tools