![]()  | 
  
    Gamedev Framework (gf)
    0.9.0
    
   A C++14 framework for 2D games 
   | 
 
A 3x3 matrix. More...
#include <gf/Matrix.h>
Public Types | |
| using | value_type = T | 
| The value type of the elements of the matrix.  More... | |
Public Member Functions | |
| Matrix ()=default | |
| Default constructor.  More... | |
| constexpr | Matrix (ZeroType) noexcept | 
| constexpr | Matrix (T val) noexcept | 
| constexpr | Matrix (const T *array) | 
| constexpr | Matrix (T e11, T e12, T e13, T e21, T e22, T e23, T e31, T e32, T e33) noexcept | 
| Constructor that takes all the elements.  More... | |
| const T * | getData () const noexcept | 
| T * | getData () noexcept | 
| T | operator() (std::size_t row, std::size_t col) const | 
| T & | operator() (std::size_t row, std::size_t col) | 
| constexpr void | zero () noexcept | 
Public Attributes | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| union gf::Matrix< T, 3, 3 >:: { ... } | |
| T | xx | 
| T | m11 | 
| T | xy | 
| T | m12 | 
| T | xz | 
| T | m13 | 
| T | yx | 
| T | m21 | 
| T | yy | 
| T | m22 | 
| T | yz | 
| T | m23 | 
| T | zx | 
| T | m31 | 
| T | zy | 
| T | m32 | 
| T | zz | 
| T | m33 | 
Static Public Attributes | |
| static constexpr std::size_t | Rows = 3 | 
| The number of rows in the matrix.  More... | |
| static constexpr std::size_t | Cols = 3 | 
| The number of columns in the matrix.  More... | |
A 3x3 matrix.
This specialization of gf::Matrix handles affine transformation of 2D vectors (using homogeneous coordinates).
Each element of the matrix can be accessed through a name with a double letter indicating the column and row of the element (e.g. xy indicates the first row and second column).
A common typedef is defined:
float as T| using gf::Matrix< T, 3, 3 >::value_type = T | 
The value type of the elements of the matrix.
      
  | 
  default | 
Default constructor.
      
  | 
  inlinenoexcept | 
      
  | 
  inlineexplicitnoexcept | 
      
  | 
  inlineexplicit | 
      
  | 
  inlinenoexcept | 
Constructor that takes all the elements.
| e11 | The element in the first row and first column | 
| e12 | The element in the first row and second column | 
| e13 | The element in the first row and third column | 
| e21 | The element in the second row and first column | 
| e22 | The element in the second row and second column | 
| e23 | The element in the second row and third column | 
| e31 | The element in the third row and first column | 
| e32 | The element in the third row and second column | 
| e33 | The element in the third row and third column | 
      
  | 
  inlinenoexcept | 
      
  | 
  inlinenoexcept | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlinenoexcept | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
| union { ... } | 
      
  | 
  static | 
The number of columns in the matrix.
| T gf::Matrix< T, 3, 3 >::m11 | 
| T gf::Matrix< T, 3, 3 >::m12 | 
| T gf::Matrix< T, 3, 3 >::m13 | 
| T gf::Matrix< T, 3, 3 >::m21 | 
| T gf::Matrix< T, 3, 3 >::m22 | 
| T gf::Matrix< T, 3, 3 >::m23 | 
| T gf::Matrix< T, 3, 3 >::m31 | 
| T gf::Matrix< T, 3, 3 >::m32 | 
| T gf::Matrix< T, 3, 3 >::m33 | 
      
  | 
  static | 
The number of rows in the matrix.
| T gf::Matrix< T, 3, 3 >::xx | 
| T gf::Matrix< T, 3, 3 >::xy | 
| T gf::Matrix< T, 3, 3 >::xz | 
| T gf::Matrix< T, 3, 3 >::yx | 
| T gf::Matrix< T, 3, 3 >::yy | 
| T gf::Matrix< T, 3, 3 >::yz | 
| T gf::Matrix< T, 3, 3 >::zx | 
| T gf::Matrix< T, 3, 3 >::zy | 
| T gf::Matrix< T, 3, 3 >::zz | 
 1.8.13