19 #include <grass/gis.h> 
   21 static void trans(
double *x, 
double *
y, 
int n_points,
 
   22                   double angle, 
double scale, 
double xc, 
double yc)
 
   25     double sin_a = sin(angle);
 
   26     double cos_a = cos(angle);
 
   29     m[0][0] = cos_a * scale;
 
   30     m[0][1] = -sin_a * scale;
 
   31     m[1][0] = sin_a * scale;
 
   32     m[1][1] = cos_a * scale;
 
   34     for (i = 0; i < n_points; i++) {
 
   38         x[i] = m[0][0] * xi + m[0][1] * yi + xc;
 
   39         y[i] = m[1][0] * xi + m[1][1] * yi + yc;
 
   58     G_debug(2, 
"G_plot_icon(): xc=%g, yc=%g", xc, yc);
 
  106     trans(x, y, np, angle, scale, xc, yc);
 
  108     for (i = 0; i < np; i += 2)
 
int G_plot_icon(double xc, double yc, int type, double angle, double scale)
Plot icon. 
int G_plot_line(double east1, double north1, double east2, double north2)
plot line between latlon coordinates 
int G_debug(int level, const char *msg,...)
Print debugging message.