Programmer Guide/Command Reference/EVAL/pghull: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
(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>…') |
No edit summary |
||
Line 4: | Line 4: | ||
:<code>pghull(<var>X</var>, <var>IX</var>, <var>Y</var>, <var>IY</var>)</code> | :<code>pghull(<var>X</var>, <var>IX</var>, <var>Y</var>, <var>IY</var>)</code> | ||
:;<var>X</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | :;<var>X</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | ||
:;<var>IX</var>: | :;<var>IX</var>:the index of a polygon of ''X''; 0 <= <var>IX</var> < <code>[[../pgget|pgget]](''X'')</code> | ||
:;<var> | :;<var>Y</var>:a [[../#polygons|closed point-list]] or a [[../#polygons|polygon-stream]] defining one or more polygons. | ||
:;<var>IY</var>:the index of a polygon of ''Y''; 0 <= <var>IY</var> < <code>[[../pgget|pgget]](''Y'')</code> | |||
;Result: The result ''r'' is a [[../#polygons|polygon-stream]] containing the hull polygon of ''X<sub>IX</sub>'' and ''Y<sub>IY</sub>''. The function fails if the two polygons have no overlapping regions. | |||
:;<var> | ;See also: [[../pginit|pginit]], [[../pgget|pgget]], [[../pgitest|pgitest]], [[../pgiline|pgiline]], [[../pgxgrid|pgxgrid]], [[../pgsplit|pgsplit]], [[../pgtrans|pgtrans]] | ||
;Result: The result ''r'' is a [[../#polygons|polygon-stream]] containing the | |||
;See also: [[../pginit|pginit]], [[../pgget|pgget]], [[../pgitest|pgitest]], [[../pgiline|pgiline]], [[../pgxgrid|pgxgrid]], [[../pgsplit|pgsplit]], [[../ | |||
[[../#Functions|<function list>]] | [[../#Functions|<function list>]] |
Revision as of 10:22, 20 April 2011
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 a polygon of X; 0 <= IX <
pgget(X)
- Y
- a closed point-list or a polygon-stream defining one or more polygons.
- IY
- the index of a polygon of Y; 0 <= IY <
pgget(Y)