GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
psdriver/Polygon.c
Go to the documentation of this file.
1
2
#include "
psdriver.h
"
3
4
void
PS_Polygon_abs
(
const
int
*xarray,
const
int
*yarray,
int
number)
5
{
6
int
i;
7
8
if
(number < 2)
9
return
;
10
11
output
(
"%d %d POLYGONSTART\n"
, xarray[0], yarray[0]);
12
13
for
(i = 1; i < number; i++)
14
output
(
"%d %d POLYGONVERTEX\n"
, xarray[i], yarray[i]);
15
16
output
(
"POLYGONEND\n"
);
17
}
lib
psdriver
Polygon.c
Generated on Thu Sep 26 2013 09:48:05 for GRASS Programmer's Manual by
1.8.4