vsg 1.1.13
VulkanSceneGraph library
Loading...
Searching...
No Matches
vsg::t_mat2< T > Struct Template Reference

t_mat2 template class that represents a 3x3 matrix. More...

#include <mat2.h>

Public Types

using value_type = T
using column_type = t_vec2<T>

Public Member Functions

constexpr t_mat2 (value_type v)
constexpr t_mat2 (value_type v0, value_type v1, value_type v2, value_type v3)
constexpr t_mat2 (value_type v[4])
constexpr t_mat2 (const column_type &c0, const column_type &c1)
template<typename R>
 t_mat2 (const t_mat2< R > &rhs)
constexpr std::size_t size () const
constexpr std::size_t columns () const
constexpr std::size_t rows () const
column_type & operator[] (std::size_t c)
const column_type & operator[] (std::size_t c) const
value_type & operator() (std::size_t c, std::size_t r)
value_type operator() (std::size_t c, std::size_t r) const
template<typename R>
t_mat2 & operator= (const t_mat2< R > &rhs)
void set (value_type v0, value_type v1, value_type v2, value_type v3)
template<typename R>
void set (const t_mat2< R > &rhs)
T * data ()
const T * data () const

Public Attributes

column_type value [2]

Detailed Description

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

t_mat2 template class that represents a 3x3 matrix.


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