Topaz 5.0
Topaz Game Engine
Loading...
Searching...
No Matches
tz::matrix< T, N > Struct Template Reference

Description

template<typename T, int N>
requires std::integral<T> || std::floating_point<T>
struct tz::matrix< T, N >

Represents the generic matrix.

#include "matrix.hpp"

Public Member Functions

matrix< T, N > inverse () const
 Create a matrix that causes the inverse transformation. Such that the product of this and the result are the identity matrix.
 
matrix< T, N > transpose () const
 Retrieve a copy of this matrix but with its rows and columns swapped.
 

Static Public Member Functions

static constexpr matrix< T, N > zero ()
 Retrieve a matrix filled with zeroes.
 
static constexpr matrix< T, N > iden ()
 Retrieve an identity matrix that represents no transform.
 
static constexpr matrix< T, N > filled (T t)
 Retrieve a matrix filled with the given value.
 

Member Function Documentation

◆ zero()

template<typename T , int N>
static constexpr matrix< T, N > tz::matrix< T, N >::zero ( )
inlinestaticconstexpr

Retrieve a matrix filled with zeroes.

◆ iden()

template<typename T , int N>
static constexpr matrix< T, N > tz::matrix< T, N >::iden ( )
inlinestaticconstexpr

Retrieve an identity matrix that represents no transform.

◆ filled()

template<typename T , int N>
static constexpr matrix< T, N > tz::matrix< T, N >::filled ( T t)
inlinestaticconstexpr

Retrieve a matrix filled with the given value.

◆ inverse()

template<typename T , int N>
matrix< T, N > tz::matrix< T, N >::inverse ( ) const

Create a matrix that causes the inverse transformation. Such that the product of this and the result are the identity matrix.

◆ transpose()

template<typename T , int N>
matrix< T, N > tz::matrix< T, N >::transpose ( ) const

Retrieve a copy of this matrix but with its rows and columns swapped.