Lines Matching refs:Point
60 typedef struct Point {
63 struct Point *next;
64 } Point;
74 static Point *spline = (Point *) NULL; /* head of spline linked list */
77 static void DeletePoint(Point *p);
80 static void InsertPoint(Point *p, Point *q);
81 static void LineApprox(Point *p1, Point *p2, Point *p3);
82 static Point * MakePoint(double x, double y);
291 /* Parse string s to create a linked list of Point's with spline */
299 Point *pt;
338 Point *p1, *p2, *p3, *p;
366 while (p != (Point *) NULL) {
368 if ((p = p->next) == (Point *) NULL)
371 if ((p = p->next) == (Point *) NULL)
386 LineApprox(Point *p1, Point *p2, Point *p3)
391 for (Point *p = p1; p != (Point *) NULL && p != p3;) {
392 Point *p4 = MakePoint(midx(p, p->next), midy(p, p->next));
411 Point *p = spline;
419 while (p != (Point *) NULL) {
430 Point *q = p;
435 spline = (Point *) NULL;
438 /* Malloc memory for a Point, and initialise the elements to x, y, NULL */
439 /* Return a pointer to the new Point. */
441 static Point *
444 Point *p = (Point *) XtMalloc(sizeof(Point));
448 p->next = (Point *) NULL;
456 InsertPoint(Point *p, Point *q)
468 DeletePoint(Point *p)
470 Point *tmp = p->next;