pgtrans
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Shift, scale and/or rotate a polygon.
- Usage
pgtrans(X, IX {, DX, DY), KX, KY, A})
- 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>
- shift the center point
- 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
- A
- rotation angle in degree (default=0, no rotation); a scaling factors (default=1)
- rotate the polygon around the center point