4898794edd81be5285ea6e544acbedeaeb31bf78 max Tue Nov 23 08:10:57 2021 -0800 Fixing pointers to README file for license in all source code files. refs #27614 diff --git src/lib/psPoly.c src/lib/psPoly.c index e16f3bb..895b19d 100644 --- src/lib/psPoly.c +++ src/lib/psPoly.c @@ -1,53 +1,53 @@ /* psPoly - two dimensional polygon. */ /* Copyright (C) 2011 The Regents of the University of California - * See README in this or parent directory for licensing information. */ + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "psPoly.h" struct psPoly *psPolyNew() /* Create new (empty) polygon */ { struct psPoly *poly; AllocVar(poly); return poly; } void psPolyFree(struct psPoly **pPoly) /* Free up resources associated with polygon */ { struct psPoly *poly = *pPoly; if (poly != NULL) { if (poly->lastPoint != NULL) { poly->lastPoint->next = NULL; slFreeList(&poly->ptList); } freez(pPoly); } } void psPolyAddPoint(struct psPoly *poly, double x, double y) /* Add point to polygon. */ { struct psPoint *pt; poly->ptCount += 1; AllocVar(pt); pt->x = x; pt->y = y; if (poly->ptList == NULL) { poly->ptList = poly->lastPoint = pt; pt->next = pt; } else { poly->lastPoint->next = pt; pt->next = poly->ptList; poly->lastPoint = pt; } }