From c5af0faafa822e9db410553e77df16d1cb7f7ee0 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Wed, 20 Jan 2021 21:31:27 +0700 Subject: [PATCH] basic qua headers --- headers/vmath.hpp/vmath.hpp | 3 +++ headers/vmath.hpp/vmath_fwd.hpp | 9 +++++++++ headers/vmath.hpp/vmath_qua.hpp | 17 +++++++++++++++++ headers/vmath.hpp/vmath_qua_fun.hpp | 24 ++++++++++++++++++++++++ untests/vmath_qua_fun_tests.cpp | 17 +++++++++++++++++ untests/vmath_qua_tests.cpp | 17 +++++++++++++++++ 6 files changed, 87 insertions(+) create mode 100644 headers/vmath.hpp/vmath_qua.hpp create mode 100644 headers/vmath.hpp/vmath_qua_fun.hpp create mode 100644 untests/vmath_qua_fun_tests.cpp create mode 100644 untests/vmath_qua_tests.cpp diff --git a/headers/vmath.hpp/vmath.hpp b/headers/vmath.hpp/vmath.hpp index 4d04e19..64b7e5a 100644 --- a/headers/vmath.hpp/vmath.hpp +++ b/headers/vmath.hpp/vmath.hpp @@ -14,5 +14,8 @@ #include "vmath_mat.hpp" #include "vmath_mat_fun.hpp" +#include "vmath_qua.hpp" +#include "vmath_qua_fun.hpp" + #include "vmath_vec.hpp" #include "vmath_vec_fun.hpp" diff --git a/headers/vmath.hpp/vmath_fwd.hpp b/headers/vmath.hpp/vmath_fwd.hpp index 82c21c4..7ef864a 100644 --- a/headers/vmath.hpp/vmath_fwd.hpp +++ b/headers/vmath.hpp/vmath_fwd.hpp @@ -91,3 +91,12 @@ namespace vmath_hpp using ptrdiff3x3 = mat; using ptrdiff4x4 = mat; } + +namespace vmath_hpp +{ + template < typename T > + class qua; + + using fqua = qua; + using dqua = qua; +} diff --git a/headers/vmath.hpp/vmath_qua.hpp b/headers/vmath.hpp/vmath_qua.hpp new file mode 100644 index 0000000..efe3664 --- /dev/null +++ b/headers/vmath.hpp/vmath_qua.hpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * This file is part of the "https://github.com/blackmatov/vmath.hpp" + * For conditions of distribution and use, see copyright notice in LICENSE.md + * Copyright (C) 2020-2021, by Matvey Cherevko (blackmatov@gmail.com) + ******************************************************************************/ + +#pragma once + +#include "vmath_fwd.hpp" + +namespace vmath_hpp::detail +{ +} + +namespace vmath_hpp +{ +} diff --git a/headers/vmath.hpp/vmath_qua_fun.hpp b/headers/vmath.hpp/vmath_qua_fun.hpp new file mode 100644 index 0000000..98ad9aa --- /dev/null +++ b/headers/vmath.hpp/vmath_qua_fun.hpp @@ -0,0 +1,24 @@ +/******************************************************************************* + * This file is part of the "https://github.com/blackmatov/vmath.hpp" + * For conditions of distribution and use, see copyright notice in LICENSE.md + * Copyright (C) 2020-2021, by Matvey Cherevko (blackmatov@gmail.com) + ******************************************************************************/ + +#pragma once + +#include "vmath_fwd.hpp" + +#include "vmath_fun.hpp" +#include "vmath_qua.hpp" + +namespace vmath_hpp::detail::impl +{ +} + +namespace vmath_hpp::detail +{ +} + +namespace vmath_hpp +{ +} diff --git a/untests/vmath_qua_fun_tests.cpp b/untests/vmath_qua_fun_tests.cpp new file mode 100644 index 0000000..dff5436 --- /dev/null +++ b/untests/vmath_qua_fun_tests.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * This file is part of the "https://github.com/blackmatov/vmath.hpp" + * For conditions of distribution and use, see copyright notice in LICENSE.md + * Copyright (C) 2020-2021, by Matvey Cherevko (blackmatov@gmail.com) + ******************************************************************************/ + +#include "vmath_tests.hpp" +#include "doctest/doctest.hpp" + +namespace +{ + using namespace vmath_hpp; + using namespace vmath_tests; +} + +TEST_CASE("vmath/qua_fun") { +} diff --git a/untests/vmath_qua_tests.cpp b/untests/vmath_qua_tests.cpp new file mode 100644 index 0000000..bab357c --- /dev/null +++ b/untests/vmath_qua_tests.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * This file is part of the "https://github.com/blackmatov/vmath.hpp" + * For conditions of distribution and use, see copyright notice in LICENSE.md + * Copyright (C) 2020-2021, by Matvey Cherevko (blackmatov@gmail.com) + ******************************************************************************/ + +#include "vmath_tests.hpp" +#include "doctest/doctest.hpp" + +namespace +{ + using namespace vmath_hpp; + using namespace vmath_tests; +} + +TEST_CASE("vmath/qua") { +}