xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
Public 类型 | Public 属性 | 静态 Public 属性 | 所有成员列表
xcmath::VecInfo< _Tp > 模板结构体 参考

#include <vec.hpp>

Public 类型

using DataType = decltype([]() { if constexpr(Vec< _Tp >) return VecInfo< typename _Tp::ItemType >::Zero
 
template<class _Sl , class... _Sls>
using SubVec = decltype(SubVecZero< _Sl, _Sls... >)
 

Public 属性

else return _Tp {}
 

静态 Public 属性

static constexpr size_t dim
 
static constexpr auto Zero
 
template<class _Sl , class... _Sls>
static constexpr auto SubVecZero
 

详细描述

template<class _Tp>
struct xcmath::VecInfo< _Tp >
模板参数
_Tp

在文件 vec.hpp109 行定义.

成员类型定义说明

◆ DataType

template<class _Tp >
using xcmath::VecInfo< _Tp >::DataType = decltype([]() { if constexpr (Vec<_Tp>) return VecInfo<typename _Tp::ItemType>::Zero

在文件 vec.hpp135 行定义.

◆ SubVec

template<class _Tp >
template<class _Sl , class... _Sls>
using xcmath::VecInfo< _Tp >::SubVec = decltype(SubVecZero<_Sl, _Sls...>)

在文件 vec.hpp151 行定义.

类成员变量说明

◆ _Tp

template<class _Tp >
else return xcmath::VecInfo< _Tp >::_Tp {}

在文件 vec.hpp139 行定义.

◆ dim

template<class _Tp >
constexpr size_t xcmath::VecInfo< _Tp >::dim
staticconstexpr
初始值:
= []() -> size_t {
return 0;
}()
Type requirement concept for vector types
Definition vec.hpp:56
static constexpr size_t dim
Definition vec.hpp:124

在文件 vec.hpp124 行定义.

◆ SubVecZero

template<class _Tp >
template<class _Sl , class... _Sls>
constexpr auto xcmath::VecInfo< _Tp >::SubVecZero
staticconstexpr
初始值:
= []() constexpr {
if constexpr (sizeof...(_Sls))
return int{};
else
return std::declval<float>();
}()

在文件 vec.hpp144 行定义.

◆ Zero

template<class _Tp >
constexpr auto xcmath::VecInfo< _Tp >::Zero
staticconstexpr
初始值:
= []() {
if constexpr (Vec<_Tp>)
else
return _Tp{};
}()
static constexpr auto Zero
Definition vec.hpp:129
else return _Tp
Definition vec.hpp:139

在文件 vec.hpp129 行定义.


该结构体的文档由以下文件生成: