wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::math::Quaternion< T > Struct Template Reference

#include <quaternion.hpp>

Collaboration diagram for wren::math::Quaternion< T >:

Public Member Functions

 Quaternion ()
 
 Quaternion (T x, T y, T z, T w)
 
 Quaternion (Vec< T, 3 > euler_angles)
 
auto x () const
 
auto x (T x)
 
auto y () const
 
auto z () const
 
auto w () const
 
auto normalize ()
 
auto normalized () const
 
auto to_mat ()
 

Static Public Member Functions

static auto identity ()
 

Public Attributes

Vec< T, 4 > data
 

Constructor & Destructor Documentation

◆ Quaternion() [1/3]

template<typename T >
wren::math::Quaternion< T >::Quaternion ( )
inline
Here is the caller graph for this function:

◆ Quaternion() [2/3]

template<typename T >
wren::math::Quaternion< T >::Quaternion ( T x,
T y,
T z,
T w )
inline
Here is the call graph for this function:

◆ Quaternion() [3/3]

template<typename T >
wren::math::Quaternion< T >::Quaternion ( Vec< T, 3 > euler_angles)
inline
Here is the call graph for this function:

Member Function Documentation

◆ identity()

template<typename T >
static auto wren::math::Quaternion< T >::identity ( )
inlinestatic

◆ normalize()

template<typename T >
auto wren::math::Quaternion< T >::normalize ( )
inline
Here is the call graph for this function:

◆ normalized()

template<typename T >
auto wren::math::Quaternion< T >::normalized ( ) const
inline
Here is the call graph for this function:

◆ to_mat()

template<typename T >
auto wren::math::Quaternion< T >::to_mat ( )
inline
Here is the call graph for this function:

◆ w()

template<typename T >
auto wren::math::Quaternion< T >::w ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x() [1/2]

template<typename T >
auto wren::math::Quaternion< T >::x ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x() [2/2]

template<typename T >
auto wren::math::Quaternion< T >::x ( T x)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ y()

template<typename T >
auto wren::math::Quaternion< T >::y ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ z()

template<typename T >
auto wren::math::Quaternion< T >::z ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ data

template<typename T >
Vec<T, 4> wren::math::Quaternion< T >::data

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