commit 08e4cfc029f07d21c7fef152649244417baf5792
parent 8e3ef49abe3495f0cc4c1d27dcd50bc2698661c2
Author: Benjamin Piaud <benjamin.piaud@meso-star.com>
Date: Wed, 24 Aug 2022 16:41:14 +0200
Add copyright in polygon source files
Diffstat:
2 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/src/polygon.c b/src/polygon.c
@@ -1,8 +1,22 @@
+/* Copyright (C) 2022 |Meso|Star> (contact@meso-star.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
#include "polygon.h"
#include <rsys/double3.h>
#include <rsys/double2.h>
-
static
res_T
set_polygon(const double* x, const double* y, const size_t n, struct pg_polygon* pg)
@@ -20,7 +34,6 @@ set_polygon(const double* x, const double* y, const size_t n, struct pg_polygon*
return res;
}
-
/******************************************************************************/
res_T
@@ -216,5 +229,4 @@ error:
if (pg_int->x || pg_int->y) pg_release(pg_int);
if (pg_ext->x || pg_ext->y) pg_release(pg_ext);
goto exit;
-
}
diff --git a/src/polygon.h b/src/polygon.h
@@ -1,3 +1,18 @@
+/* Copyright (C) 2022 |Meso|Star> (contact@meso-star.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
#include <rsys/rsys.h>
#ifndef POLYGON_H