2
* points.c -- $Id: points.c,v 1.1 2003/03/08 15:26:51 travo Exp $
3
* p_i_pnts, p_d_pnts, p_d_map for X11
5
* Copyright (c) 1998. See accompanying LEGAL file for details.
11
XPoint x_pt_list[2050];
13
static double x_pt_xa=1., x_pt_xb=0., x_pt_ya=1., x_pt_yb=0.;
17
p_d_map(p_win *w, double xt[], double yt[], int set)
33
p_i_pnts(p_win *w, const int *x, const int *y, int n)
36
if (x_pt_count < 2048) {
38
x_pt_list[n].x = x[0];
39
x_pt_list[n].y = y[0];
44
XPoint *wrk = x_pt_list;
52
if (x_pt_count <= 2048) {
66
p_d_pnts(p_win *w, const double *x, const double *y, int n)
69
if (x_pt_count < 2048) {
71
x_pt_list[n].x = (short)(x_pt_xa*x[0] + x_pt_xb);
72
x_pt_list[n].y = (short)(x_pt_ya*y[0] + x_pt_yb);
77
XPoint *wrk = x_pt_list;
85
if (x_pt_count <= 2048) {
87
wrk[0].x = (short)(x_pt_xa*(*x++) + x_pt_xb);
88
wrk[0].y = (short)(x_pt_ya*(*y++) + x_pt_yb);