Fixed further documentation in the Math Library
This commit is contained in:
@@ -16,9 +16,6 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
/// \file __fwd.h
|
||||
/// \internal
|
||||
|
||||
#ifndef FWD_H
|
||||
#define FWD_H
|
||||
|
||||
|
||||
@@ -16,9 +16,6 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
/// \file __types.h
|
||||
/// \internal
|
||||
|
||||
#ifndef FENNEC_MATH_DETAIL_TYPES_H
|
||||
#define FENNEC_MATH_DETAIL_TYPES_H
|
||||
|
||||
@@ -30,11 +27,12 @@ namespace fennec
|
||||
namespace detail
|
||||
{
|
||||
|
||||
/// \internal
|
||||
template<template<typename, size_t...> typename VectorT, typename ScalarT, size_t...IndicesV> VectorT<ScalarT, IndicesV...> __gen_vector(index_sequence<IndicesV...>);
|
||||
template<template<typename, size_t...> typename VectorT, typename ScalarT, size_t...IndicesV>
|
||||
VectorT<ScalarT, IndicesV...> __gen_vector(index_sequence<IndicesV...>);
|
||||
|
||||
/// \internal
|
||||
template<template<typename, size_t...> typename MatrixT, typename ScalarT, size_t RowsV, size_t...IndicesV> MatrixT<ScalarT, RowsV, IndicesV...> __gen_matrix(index_sequence<IndicesV...>);
|
||||
|
||||
template<template<typename, size_t...> typename MatrixT, typename ScalarT, size_t RowsV, size_t...IndicesV>
|
||||
MatrixT<ScalarT, RowsV, IndicesV...> __gen_matrix(index_sequence<IndicesV...>);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,6 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
/// \file __vector_traits.h
|
||||
/// \internal
|
||||
|
||||
#ifndef FENNEC_MATH_DETAIL_VECTOR_TRAITS_H
|
||||
#define FENNEC_MATH_DETAIL_VECTOR_TRAITS_H
|
||||
|
||||
@@ -33,17 +30,46 @@ namespace fennec
|
||||
namespace detail
|
||||
{
|
||||
|
||||
template<typename> struct __is_vector_helper : false_type {};
|
||||
template<typename ScalarT, size_t...IndicesV> struct __is_vector_helper<vector<ScalarT, IndicesV...>> : true_type {};
|
||||
template<typename VectorT, typename DataT, typename ScalarT, size_t...IndicesV>
|
||||
struct __is_vector_helper<swizzle<VectorT, DataT, ScalarT, IndicesV...>> : true_type {};
|
||||
template<typename>
|
||||
struct __is_vector_helper
|
||||
: false_type {};
|
||||
|
||||
template<typename> struct __component_count_helper;
|
||||
template<typename TypeT> requires(is_arithmetic_v<TypeT>) struct __component_count_helper<TypeT> : integral_constant<size_t, 1> {};
|
||||
template<typename ScalarT, size_t...IndicesV> struct __component_count_helper<vector<ScalarT, IndicesV...>> : integral_constant<size_t, sizeof...(IndicesV)> {};
|
||||
template<typename VectorT, typename DataT, typename ScalarT, size_t...IndicesV> struct __component_count_helper<swizzle<VectorT, DataT, ScalarT, IndicesV...>> : integral_constant<size_t, sizeof...(IndicesV)> {};
|
||||
template<typename ScalarT, size_t RowsV, size_t...ColIndicesV> struct __component_count_helper<matrix<ScalarT, RowsV, ColIndicesV...>> : integral_constant<size_t, RowsV * sizeof...(ColIndicesV)> {};
|
||||
template<typename> struct __component_count_helper : integral_constant<size_t, 0> {};
|
||||
|
||||
template<typename ScalarT, size_t...IndicesV>
|
||||
struct __is_vector_helper<vector<ScalarT, IndicesV...>>
|
||||
: true_type {};
|
||||
|
||||
|
||||
template<typename VectorT, typename DataT, typename ScalarT, size_t...IndicesV>
|
||||
struct __is_vector_helper<swizzle<VectorT, DataT, ScalarT, IndicesV...>>
|
||||
: true_type {};
|
||||
|
||||
template<typename>
|
||||
struct __component_count_helper;
|
||||
|
||||
|
||||
template<typename TypeT> requires(is_arithmetic_v<TypeT>)
|
||||
struct __component_count_helper<TypeT>
|
||||
: integral_constant<size_t, 1> {};
|
||||
|
||||
|
||||
template<typename ScalarT, size_t...IndicesV>
|
||||
struct __component_count_helper<vector<ScalarT, IndicesV...>>
|
||||
: integral_constant<size_t, sizeof...(IndicesV)> {};
|
||||
|
||||
|
||||
template<typename VectorT, typename DataT, typename ScalarT, size_t...IndicesV>
|
||||
struct __component_count_helper<swizzle<VectorT, DataT, ScalarT, IndicesV...>>
|
||||
: integral_constant<size_t, sizeof...(IndicesV)> {};
|
||||
|
||||
|
||||
template<typename ScalarT, size_t RowsV, size_t...ColIndicesV>
|
||||
struct __component_count_helper<matrix<ScalarT, RowsV, ColIndicesV...>>
|
||||
: integral_constant<size_t, RowsV * sizeof...(ColIndicesV)> {};
|
||||
|
||||
template<typename>
|
||||
struct __component_count_helper
|
||||
: integral_constant<size_t, 0> {};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user