vsg: vsg::t_quat< T > Struct Template Reference

vsg 1.1.10 VulkanSceneGraph library |

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
vsg::t_quat< T > Struct Template Reference

t_quat template class that represents a quaternion More...

`#include <quat.h>`

## Public Types
using | value_type = T

## Public Member Functions
constexpr | t_quat (const t_quat &v)
constexpr | t_quat (value_type in_x, value_type in_y, value_type in_z, value_type in_w)
constexpr | t_quat (value_type angle_radians, const t_vec3< value_type > &axis)
constexpr | t_quat (const t_vec3< value_type > &from, const t_vec3< value_type > &to)
template<typename R>
constexpr | t_quat (const t_quat< R > &v)
constexpr t_quat & | operator= (const t_quat &)=default
constexpr std::size_t | size () const
value_type & | operator[] (std::size_t i)
value_type | operator[] (std::size_t i) const
template<typename R>
t_quat & | operator= (const t_quat< R > &rhs)
T * | data ()
const T * | data () const
void | set (value_type in_x, value_type in_y, value_type in_z, value_type in_w)
void | set (value_type angle_radians, const t_vec3< value_type > &axis)
void | set (const t_vec3< value_type > &from, const t_vec3< value_type > &to)
| operator bool () const noexcept

## Public Attributes
union { |
value_type value [4] |
struct { |
value_type x |
value_type y |
value_type z |
value_type w |
} |  |
}; |  |

## Detailed Description

template<typename T>
struct vsg::t_quat< T >

t_quat template class that represents a quaternion

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

- include/vsg/maths/quat.h