xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
| 命名空间 | 宏定义 | 函数
quaternion.hpp 文件参考

Header file for quaternion class template and related utilities 更多...

#include <cmath>
#include <type_traits>
#include "./vec.hpp"
quaternion.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  xcmath::quaternion< _Tp >
 Quaternion class template 更多...
 

命名空间

namespace  xcmath
 Compiler-specific type information handling for MSVC
 

宏定义

#define XCMATH_QUATERNION_HPP
 

函数

template<class _Tp , class _ItemType >
requires (!std::is_same_v<_Tp, quaternion<_ItemType>>)
auto xcmath::operator+ (const _Tp &other, const quaternion< _ItemType > &v)
 Quaternion addition operator with scalar on the left
 
template<class _Tp , class _ItemType >
requires (!std::is_same_v<_Tp, quaternion<_ItemType>>)
auto xcmath::operator- (const _Tp &other, const quaternion< _ItemType > &v)
 Quaternion subtraction operator with scalar on the left
 
constexpr quaternion< int > xcmath::operator""_qi (unsigned long long i)
 
constexpr quaternion< int > xcmath::operator""_qj (unsigned long long j)
 
constexpr quaternion< int > xcmath::operator""_qk (unsigned long long k)
 
constexpr quaternion< float > xcmath::operator""_qi (long double i)
 
constexpr quaternion< float > xcmath::operator""_qj (long double j)
 
constexpr quaternion< float > xcmath::operator""_qk (long double k)
 

详细描述

Header file for quaternion class template and related utilities

作者
XCDH
版本
1.0
日期
2023-10-05

在文件 quaternion.hpp 中定义.

宏定义说明

◆ XCMATH_QUATERNION_HPP

#define XCMATH_QUATERNION_HPP

在文件 quaternion.hpp10 行定义.