From e8bea8924bf48dd025ae2968b3885b9d6a1bc523 Mon Sep 17 00:00:00 2001 From: VegOwOtenks Date: Sat, 1 Mar 2025 22:32:30 +0100 Subject: [PATCH] New structure definition: 2D Double Vector --- src/Vector/Vec2DF64.c | 21 +++++++++++++++++++++ src/Vector/Vec2DF64.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/Vector/Vec2DF64.c create mode 100644 src/Vector/Vec2DF64.h diff --git a/src/Vector/Vec2DF64.c b/src/Vector/Vec2DF64.c new file mode 100644 index 0000000..54d246c --- /dev/null +++ b/src/Vector/Vec2DF64.c @@ -0,0 +1,21 @@ +/* + * This code is part of the C library utilitiec + * utilitiec comes with ABSOLUTELY NO WARRANTY and is licensed under GPL-2.0. + * Copyright (C) 2025 VegOwOtenks + * + * 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 2 + * 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include "Vec2DF64.h" diff --git a/src/Vector/Vec2DF64.h b/src/Vector/Vec2DF64.h new file mode 100644 index 0000000..a29f1bb --- /dev/null +++ b/src/Vector/Vec2DF64.h @@ -0,0 +1,28 @@ +/* + * This code is part of the C library utilitiec + * utilitiec comes with ABSOLUTELY NO WARRANTY and is licensed under GPL-2.0. + * Copyright (C) 2025 VegOwOtenks + * + * 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 2 + * 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +#ifndef UTILITIEC_VEC2DF64_H +#define UTILITIEC_VEC2DF64_H + +typedef struct Vec2DF64_s { + double x; + double y; +} Vec2DF64; + +#endif