sculpto
Public Member Functions | Public Attributes | List of all members
scl::math::matr3_data< T > Class Template Reference

#include <matr3.h>

Inheritance diagram for scl::math::matr3_data< T >:
scl::math::matr3< T >

Public Member Functions

 matr3_data ()
 
 matr3_data (T A00, T A01, T A02, T A10, T A11, T A12, T A20, T A21, T A22)
 
 matr3_data (T A00)
 
 operator T* ()
 

Public Attributes

A [3][3]
 

Detailed Description

template<class T>
class scl::math::matr3_data< T >

3x3 matrix data type class. Used to pass onlt neccecery data to shaders.

Definition at line 20 of file matr3.h.

Constructor & Destructor Documentation

◆ matr3_data() [1/3]

template<class T >
scl::math::matr3_data< T >::matr3_data ( )
inline

Default matrix data constructor.

Definition at line 27 of file matr3.h.

27 :
28 A { {1, 0, 0},
29 {0, 1, 0},
30 {0, 0, 1} } {}

◆ matr3_data() [2/3]

template<class T >
scl::math::matr3_data< T >::matr3_data ( A00,
A01,
A02,
A10,
A11,
A12,
A20,
A21,
A22 
)
inline
  • Matrix data constructor by 9 values.
Parameters
A00-A22- matrx valeus.

Definition at line 37 of file matr3.h.

39 :
40 A { {A00, A01, A02},
41 {A10, A11, A12},
42 {A20, A21, A22} } {}

◆ matr3_data() [3/3]

template<class T >
scl::math::matr3_data< T >::matr3_data ( A00)
inline
  • Matrix data constructor by 1 value.
Parameters
A00- calue to set to all matrix cells.

Definition at line 49 of file matr3.h.

49 :
50 A { {A00, A00, A00 },
51 {A00, A00, A00 },
52 {A00, A00, A00 } } {}

Member Function Documentation

◆ operator T*()

template<class T >
scl::math::matr3_data< T >::operator T* ( )
inline
  • Getting pointer to first component of natrix operator. Need to pass vector to shader.
Returns
pointer to first component of matrix.

Definition at line 60 of file matr3.h.

61 {
62 return A[0];
63 }

Member Data Documentation

◆ A

template<class T >
T scl::math::matr3_data< T >::A[3][3]

Matrix data

Definition at line 24 of file matr3.h.


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