Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
mv::math::Quat< T > Class Template Reference

#include <mv/math/Quat.hpp>

Public Member Functions

constexpr Quat () noexcept
 
constexpr Quat (T x, T y, T z, T w) noexcept
 
constexpr T X () const noexcept
 
constexpr T Y () const noexcept
 
constexpr T Z () const noexcept
 
constexpr T W () const noexcept
 
constexpr Quat operator+ (const Quat &other) const noexcept
 
constexpr Quat operator- (const Quat &other) const noexcept
 
constexpr Quat operator* (T scalar) const noexcept
 
constexpr Quat operator/ (T scalar) const noexcept
 
constexpr Quat operator- () const noexcept
 
constexpr Quat operator* (const Quat &right) const noexcept
 

Detailed Description

template<typename T>
requires std::is_floating_point_v<T>
class mv::math::Quat< T >

Definition at line 18 of file Quat.hpp.

Constructor & Destructor Documentation

◆ Quat() [1/2]

template<typename T >
constexpr mv::math::Quat< T >::Quat ( )
inlineconstexprnoexcept

Definition at line 21 of file Quat.hpp.

◆ Quat() [2/2]

template<typename T >
constexpr mv::math::Quat< T >::Quat ( T  x,
T  y,
T  z,
T  w 
)
inlineconstexprnoexcept

Definition at line 25 of file Quat.hpp.

Member Function Documentation

◆ operator*() [1/2]

template<typename T >
constexpr Quat mv::math::Quat< T >::operator* ( const Quat< T > &  right) const
inlineconstexprnoexcept

Definition at line 75 of file Quat.hpp.

◆ operator*() [2/2]

template<typename T >
constexpr Quat mv::math::Quat< T >::operator* ( T  scalar) const
inlineconstexprnoexcept

Definition at line 58 of file Quat.hpp.

◆ operator+()

template<typename T >
constexpr Quat mv::math::Quat< T >::operator+ ( const Quat< T > &  other) const
inlineconstexprnoexcept

Definition at line 46 of file Quat.hpp.

◆ operator-() [1/2]

template<typename T >
constexpr Quat mv::math::Quat< T >::operator- ( ) const
inlineconstexprnoexcept

Definition at line 68 of file Quat.hpp.

◆ operator-() [2/2]

template<typename T >
constexpr Quat mv::math::Quat< T >::operator- ( const Quat< T > &  other) const
inlineconstexprnoexcept

Definition at line 52 of file Quat.hpp.

◆ operator/()

template<typename T >
constexpr Quat mv::math::Quat< T >::operator/ ( T  scalar) const
inlineconstexprnoexcept

Definition at line 63 of file Quat.hpp.

◆ W()

template<typename T >
constexpr T mv::math::Quat< T >::W ( ) const
inlineconstexprnoexcept

Definition at line 41 of file Quat.hpp.

◆ X()

template<typename T >
constexpr T mv::math::Quat< T >::X ( ) const
inlineconstexprnoexcept

Definition at line 29 of file Quat.hpp.

◆ Y()

template<typename T >
constexpr T mv::math::Quat< T >::Y ( ) const
inlineconstexprnoexcept

Definition at line 33 of file Quat.hpp.

◆ Z()

template<typename T >
constexpr T mv::math::Quat< T >::Z ( ) const
inlineconstexprnoexcept

Definition at line 37 of file Quat.hpp.


The documentation for this class was generated from the following file: