2
* points.c -- $Id: points.c,v 1.1 2003/03/08 15:26:49 travo Exp $
3
* p_i_pnts, p_d_pnts, p_d_map for MS Windows
5
* Copyright (c) 1998. See accompanying LEGAL file for details.
10
POINT w_pt_list[2050];
12
static double w_pt_xa=1., w_pt_xb=0., w_pt_ya=1., w_pt_yb=0.;
16
p_d_map(p_win *w, double xt[], double yt[], int set)
32
p_i_pnts(p_win *w, const int *x, const int *y, int n)
35
if (w_pt_count < 2048) {
37
w_pt_list[n].x = x[0];
38
w_pt_list[n].y = y[0];
43
POINT *wrk = w_pt_list;
51
if (w_pt_count <= 2048) {
65
p_d_pnts(p_win *w, const double *x, const double *y, int n)
68
if (w_pt_count < 2048) {
70
w_pt_list[n].x = (long)(w_pt_xa*x[0] + w_pt_xb);
71
w_pt_list[n].y = (long)(w_pt_ya*y[0] + w_pt_yb);
76
POINT *wrk = w_pt_list;
84
if (w_pt_count <= 2048) {
86
wrk[0].x = (long)(w_pt_xa*(*x++) + w_pt_xb);
87
wrk[0].y = (long)(w_pt_ya*(*y++) + w_pt_yb);