Lugdunum
0.1.0
|
Namespaces | |
Geometry | |
Classes | |
class | Matrix |
class | Quaternion |
class | ValArray |
class | Vector |
Typedefs | |
using | Quatf = Quaternion< float > |
using | Quatd = Quaternion< double > |
Functions | |
template<typename T > | |
T | epsilon () |
template<typename T > | |
T | pi () |
template<typename T > | |
T | twoPi () |
template<typename T > | |
T | rootPi () |
template<typename T > | |
T | halfPi () |
template<typename T > | |
T | threeOverTwoPi () |
template<typename T > | |
T | quarterPi () |
template<typename T > | |
T | oneOverPi () |
template<typename T > | |
T | oneOverTwoPi () |
template<typename T > | |
T | twoOverPi () |
template<typename T > | |
T | fourOverPi () |
template<typename T > | |
T | twoOverRootPi () |
template<typename T > | |
T | oneOverRootPi () |
template<typename T > | |
T | rootHalfPi () |
template<typename T > | |
T | rootTwoPi () |
template<typename T > | |
T | rootLnFour () |
template<typename T > | |
T | e () |
template<typename T > | |
T | euler () |
template<typename T > | |
T | rootTwo () |
template<typename T > | |
T | rootThree () |
template<typename T > | |
T | rootFive () |
template<typename T > | |
T | lnTwo () |
template<typename T > | |
T | lnTen () |
template<typename T > | |
T | lnLnTwo () |
template<typename T > | |
T | goldenRatio () |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator- (const Matrix< Rows, Columns, T > &lhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator+ (const Matrix< Rows, Columns, T > &lhs, T rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator- (const Matrix< Rows, Columns, T > &lhs, T rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator* (const Matrix< Rows, Columns, T > &lhs, T rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator/ (const Matrix< Rows, Columns, T > &lhs, T rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator+ (T lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator- (T lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator* (T lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator/ (T lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator+ (const Matrix< Rows, Columns, T > &lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
Matrix< Rows, Columns, T > | operator- (const Matrix< Rows, Columns, T > &lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t RowsLeft, uint8_t ColumnsLeft, uint8_t RowsRight, uint8_t ColumnsRight, typename T > | |
Matrix< RowsLeft, ColumnsRight, T > | operator* (const Matrix< RowsLeft, ColumnsLeft, T > &lhs, const Matrix< RowsRight, ColumnsRight, T > &rhs) |
template<uint8_t RowsLeft, uint8_t ColumnsLeft, uint8_t RowsRight, uint8_t ColumnsRight, typename T > | |
Matrix< RowsLeft, ColumnsRight, T > | operator/ (const Matrix< RowsLeft, ColumnsLeft, T > &lhs, const Matrix< RowsRight, ColumnsRight, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
bool | operator== (const Matrix< Rows, Columns, T > &lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
bool | operator!= (const Matrix< Rows, Columns, T > &lhs, const Matrix< Rows, Columns, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
std::ostream & | operator<< (std::ostream &os, const Matrix< Rows, Columns, T > &matrix) |
template<typename T > | |
Quaternion< T > | normalize (const Quaternion< T > &lhs) |
template<typename T > | |
Quaternion< T > | conjugate (const Quaternion< T > &lhs) |
template<typename T > | |
Quaternion< T > | inverse (const Quaternion< T > &lhs) |
template<typename T > | |
T | dot (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
Quaternion< T > | directionTo (const Vector< 3, T > &original, const Vector< 3, T > &expected) |
template<typename T > | |
Quaternion< T > | operator- (const Quaternion< T > &lhs) |
template<typename T > | |
Quaternion< T > | operator+ (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
Quaternion< T > | operator- (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
Quaternion< T > | operator* (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
Quaternion< T > | operator/ (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
bool | operator== (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
bool | operator!= (const Quaternion< T > &lhs, const Quaternion< T > &rhs) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Quaternion< T > &quaternion) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator+ (const ValArray< Size, T > &lhs, const T &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator- (const ValArray< Size, T > &lhs, const T &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator* (const ValArray< Size, T > &lhs, const T &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator/ (const ValArray< Size, T > &lhs, const T &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator+ (const T &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator- (const T &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator* (const T &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator/ (const T &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator+ (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator- (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator* (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
ValArray< Size, T > | operator/ (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
bool | operator== (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<size_t Size, typename T = float> | |
bool | operator!= (const ValArray< Size, T > &lhs, const ValArray< Size, T > &rhs) |
template<typename T > | |
constexpr Vector< 3, T > | cross (const Vector< 3, T > &lhs, const Vector< 3, T > &rhs) |
template<uint8_t Rows, typename T > | |
constexpr T | dot (const Vector< Rows, T > &lhs, const Vector< Rows, T > &rhs) |
template<uint8_t Rows, uint8_t Columns, typename T > | |
constexpr Matrix< Rows, Columns, T > | outer (const Vector< Rows, T > &lhs, const Vector< Columns, T > &rhs) |
template<uint8_t Rows, typename T > | |
constexpr Vector< Rows, T > | normalize (const Vector< Rows, T > &lhs) |
template<uint8_t Rows, typename T > | |
Vector< Rows, T > | operator* (const Vector< Rows, T > &lhs, const Vector< Rows, T > &rhs) |
template<uint8_t Rows, typename T > | |
Vector< Rows, T > | operator/ (const Vector< Rows, T > &lhs, const Vector< Rows, T > &rhs) |
template<uint8_t Rows, typename T > | |
Vector< Rows, T > | operator* (const Vector< Rows, T > &lhs, const Matrix< Rows, Rows, T > &rhs) |
template<uint8_t Rows, typename T > | |
Vector< Rows, T > | operator* (const Matrix< Rows, Rows, T > &lhs, const Vector< Rows, T > &rhs) |
template<typename T > | |
Vector< 3, T > | operator* (const Vector< 3, T > &lhs, const Matrix< 4, 4, T > &rhs) |
template<typename T > | |
Vector< 3, T > | operator* (const Matrix< 4, 4, T > &lhs, const Vector< 3, T > &rhs) |
Variables | |
template class LUG_MATH_API | Quaternion< float > |
template class LUG_MATH_API | Quaternion< double > |
using lug::Math::Quatf = typedef Quaternion<float> |
Definition at line 75 of file Quaternion.hpp.
using lug::Math::Quatd = typedef Quaternion<double> |
Definition at line 78 of file Quaternion.hpp.
|
inline |
Definition at line 2 of file Constant.inl.
|
inline |
Definition at line 7 of file Constant.inl.
|
inline |
Definition at line 12 of file Constant.inl.
|
inline |
Definition at line 17 of file Constant.inl.
|
inline |
Definition at line 22 of file Constant.inl.
|
inline |
Definition at line 27 of file Constant.inl.
|
inline |
Definition at line 32 of file Constant.inl.
|
inline |
Definition at line 37 of file Constant.inl.
|
inline |
Definition at line 42 of file Constant.inl.
|
inline |
Definition at line 47 of file Constant.inl.
|
inline |
Definition at line 52 of file Constant.inl.
|
inline |
Definition at line 57 of file Constant.inl.
|
inline |
Definition at line 62 of file Constant.inl.
|
inline |
Definition at line 67 of file Constant.inl.
|
inline |
Definition at line 72 of file Constant.inl.
|
inline |
Definition at line 77 of file Constant.inl.
|
inline |
Definition at line 82 of file Constant.inl.
|
inline |
Definition at line 87 of file Constant.inl.
|
inline |
Definition at line 92 of file Constant.inl.
|
inline |
Definition at line 97 of file Constant.inl.
|
inline |
Definition at line 102 of file Constant.inl.
|
inline |
Definition at line 107 of file Constant.inl.
|
inline |
Definition at line 112 of file Constant.inl.
|
inline |
Definition at line 117 of file Constant.inl.
|
inline |
Definition at line 122 of file Constant.inl.
Matrix<Rows, Columns, T> lug::Math::operator- | ( | const Matrix< Rows, Columns, T > & | lhs | ) |
Matrix<Rows, Columns, T> lug::Math::operator+ | ( | const Matrix< Rows, Columns, T > & | lhs, |
T | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator- | ( | const Matrix< Rows, Columns, T > & | lhs, |
T | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator* | ( | const Matrix< Rows, Columns, T > & | lhs, |
T | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator/ | ( | const Matrix< Rows, Columns, T > & | lhs, |
T | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator+ | ( | T | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator- | ( | T | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator* | ( | T | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator/ | ( | T | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator+ | ( | const Matrix< Rows, Columns, T > & | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<Rows, Columns, T> lug::Math::operator- | ( | const Matrix< Rows, Columns, T > & | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
Matrix<RowsLeft, ColumnsRight, T> lug::Math::operator* | ( | const Matrix< RowsLeft, ColumnsLeft, T > & | lhs, |
const Matrix< RowsRight, ColumnsRight, T > & | rhs | ||
) |
Matrix<RowsLeft, ColumnsRight, T> lug::Math::operator/ | ( | const Matrix< RowsLeft, ColumnsLeft, T > & | lhs, |
const Matrix< RowsRight, ColumnsRight, T > & | rhs | ||
) |
bool lug::Math::operator== | ( | const Matrix< Rows, Columns, T > & | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
bool lug::Math::operator!= | ( | const Matrix< Rows, Columns, T > & | lhs, |
const Matrix< Rows, Columns, T > & | rhs | ||
) |
std::ostream& lug::Math::operator<< | ( | std::ostream & | os, |
const Matrix< Rows, Columns, T > & | matrix | ||
) |
Quaternion<T> lug::Math::normalize | ( | const Quaternion< T > & | lhs | ) |
Quaternion<T> lug::Math::conjugate | ( | const Quaternion< T > & | lhs | ) |
Quaternion<T> lug::Math::inverse | ( | const Quaternion< T > & | lhs | ) |
T lug::Math::dot | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
Quaternion<T> lug::Math::directionTo | ( | const Vector< 3, T > & | original, |
const Vector< 3, T > & | expected | ||
) |
Quaternion<T> lug::Math::operator- | ( | const Quaternion< T > & | lhs | ) |
Quaternion<T> lug::Math::operator+ | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
Quaternion<T> lug::Math::operator- | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
Quaternion<T> lug::Math::operator* | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
Quaternion<T> lug::Math::operator/ | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
bool lug::Math::operator== | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
bool lug::Math::operator!= | ( | const Quaternion< T > & | lhs, |
const Quaternion< T > & | rhs | ||
) |
std::ostream& lug::Math::operator<< | ( | std::ostream & | os, |
const Quaternion< T > & | quaternion | ||
) |
ValArray<Size, T> lug::Math::operator+ | ( | const ValArray< Size, T > & | lhs, |
const T & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator- | ( | const ValArray< Size, T > & | lhs, |
const T & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator* | ( | const ValArray< Size, T > & | lhs, |
const T & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator/ | ( | const ValArray< Size, T > & | lhs, |
const T & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator+ | ( | const T & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator- | ( | const T & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator* | ( | const T & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator/ | ( | const T & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator+ | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator- | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator* | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
ValArray<Size, T> lug::Math::operator/ | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
bool lug::Math::operator== | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
bool lug::Math::operator!= | ( | const ValArray< Size, T > & | lhs, |
const ValArray< Size, T > & | rhs | ||
) |
constexpr Vector<3, T> lug::Math::cross | ( | const Vector< 3, T > & | lhs, |
const Vector< 3, T > & | rhs | ||
) |
constexpr T lug::Math::dot | ( | const Vector< Rows, T > & | lhs, |
const Vector< Rows, T > & | rhs | ||
) |
constexpr Matrix<Rows, Columns, T> lug::Math::outer | ( | const Vector< Rows, T > & | lhs, |
const Vector< Columns, T > & | rhs | ||
) |
constexpr Vector<Rows, T> lug::Math::normalize | ( | const Vector< Rows, T > & | lhs | ) |
Vector<Rows, T> lug::Math::operator* | ( | const Vector< Rows, T > & | lhs, |
const Vector< Rows, T > & | rhs | ||
) |
Vector<Rows, T> lug::Math::operator/ | ( | const Vector< Rows, T > & | lhs, |
const Vector< Rows, T > & | rhs | ||
) |
Vector<Rows, T> lug::Math::operator* | ( | const Vector< Rows, T > & | lhs, |
const Matrix< Rows, Rows, T > & | rhs | ||
) |
Vector<Rows, T> lug::Math::operator* | ( | const Matrix< Rows, Rows, T > & | lhs, |
const Vector< Rows, T > & | rhs | ||
) |
Vector<3, T> lug::Math::operator* | ( | const Vector< 3, T > & | lhs, |
const Matrix< 4, 4, T > & | rhs | ||
) |
Vector<3, T> lug::Math::operator* | ( | const Matrix< 4, 4, T > & | lhs, |
const Vector< 3, T > & | rhs | ||
) |
template class LUG_MATH_API lug::Math::Quaternion< float > |
Definition at line 74 of file Quaternion.hpp.
template class LUG_MATH_API lug::Math::Quaternion< double > |
Definition at line 77 of file Quaternion.hpp.