Lines Matching refs:points
47 points[i][0]=p[0];
48 points[i][1]=p[1];
70 /*space of points[][2] is allocated*/
74 points = (Real2*) malloc(sizeof(Real2) * n_points);
75 assert(points);
79 /*space of points[][2] is allocated and
80 *points are copied
86 points = (Real2*) malloc(sizeof(Real2) * n_points);
87 assert(points);
89 points[i][0] = pts[i][0];
90 points[i][1] = pts[i][1];
98 points = (Real2*) malloc(sizeof(Real2) * 2);
99 assert(points);
100 points[0][0] = pt1[0];
101 points[0][1] = pt1[1];
102 points[1][0] = pt2[0];
103 points[1][1] = pt2[1];
111 points = NULL;
119 points = pts;
122 /*points[] is dealocated
126 free(points);
135 printf("(%f,%f)\n", points[i][0], points[i][1]);
145 nu = 1+(Int) (fabs((points[npoints-1][0] - points[0][0])) * u_reso);
146 nv = 1+(Int) (fabs((points[npoints-1][1] - points[0][1])) * v_reso);
154 Real du = (points[npoints-1][0] - points[0][0])/n;
155 Real dv = (points[npoints-1][1] - points[0][1])/n;
160 for(i=0, u=points[0][0], v=points[0][1]; i<n; i++, u+=du, v+=dv)
165 temp[n][0] = points[npoints-1][0];
166 temp[n][1] = points[npoints-1][1];
168 free(points);
171 points = temp;