olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::mat3_generic< T > Struct Template Reference

#include <olcPGEX_Wireframe.h>

Public Member Functions

constexpr size_t idx (size_t r, size_t c) const
 
Toperator() (size_t row, size_t col)
 
const Toperator() (size_t row, size_t col) const
 
 mat3_generic ()
 
 mat3_generic (const mat3_generic &m)=default
 
mat3_genericoperator= (const mat3_generic &m)=default
 
void clear ()
 
void identity ()
 
void translate (float x, float y)
 
void translate (const olc::v2d_generic< T > &v)
 
void scale (float x, float y)
 
void scale (const olc::v2d_generic< T > &v)
 
void rotate (float a)
 
olc::v2d_generic< Toperator* (const olc::v2d_generic< T > &v) const
 
mat3_generic operator* (const mat3_generic &rhs) const
 

Public Attributes

std::array< T, 9 > m { 0 }
 

Constructor & Destructor Documentation

◆ mat3_generic() [1/2]

template<typename T >
olc::mat3_generic< T >::mat3_generic ( )
inline

◆ mat3_generic() [2/2]

template<typename T >
olc::mat3_generic< T >::mat3_generic ( const mat3_generic< T > & m)
default

Member Function Documentation

◆ clear()

template<typename T >
void olc::mat3_generic< T >::clear ( )
inline

◆ identity()

template<typename T >
void olc::mat3_generic< T >::identity ( )
inline

◆ idx()

template<typename T >
size_t olc::mat3_generic< T >::idx ( size_t r,
size_t c ) const
inlineconstexpr

◆ operator()() [1/2]

template<typename T >
T & olc::mat3_generic< T >::operator() ( size_t row,
size_t col )
inline

◆ operator()() [2/2]

template<typename T >
const T & olc::mat3_generic< T >::operator() ( size_t row,
size_t col ) const
inline

◆ operator*() [1/2]

template<typename T >
mat3_generic olc::mat3_generic< T >::operator* ( const mat3_generic< T > & rhs) const
inline

◆ operator*() [2/2]

template<typename T >
olc::v2d_generic< T > olc::mat3_generic< T >::operator* ( const olc::v2d_generic< T > & v) const
inline

◆ operator=()

template<typename T >
mat3_generic & olc::mat3_generic< T >::operator= ( const mat3_generic< T > & m)
default

◆ rotate()

template<typename T >
void olc::mat3_generic< T >::rotate ( float a)
inline

◆ scale() [1/2]

template<typename T >
void olc::mat3_generic< T >::scale ( const olc::v2d_generic< T > & v)
inline

◆ scale() [2/2]

template<typename T >
void olc::mat3_generic< T >::scale ( float x,
float y )
inline

◆ translate() [1/2]

template<typename T >
void olc::mat3_generic< T >::translate ( const olc::v2d_generic< T > & v)
inline

◆ translate() [2/2]

template<typename T >
void olc::mat3_generic< T >::translate ( float x,
float y )
inline

Member Data Documentation

◆ m

template<typename T >
std::array<T, 9> olc::mat3_generic< T >::m { 0 }

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