Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxMat< T, N > Class Template Reference

#include <Math.h>

Public Member Functions

 FxMat ()=default
 FxMat (const FxMat &)=default
FxMat & operator= (const FxMat &) &=default
constexpr T & operator() (int row, int col) noexcept
constexpr const T & operator() (int row, int col) const noexcept
constexpr T * data () noexcept
constexpr const T * data () const noexcept

Protected Member Functions

constexpr FxVec< T, N > row (int r) const noexcept

Friends

constexpr FxVec< T, N > operator* (const FxMat &m, const FxVec< T, N > &v) noexcept
constexpr FxMat operator* (const FxMat &lhs, const FxMat &rhs) noexcept

Detailed Description

template<typename T, int N>
class FxMat< T, N >

Definition at line 430 of file Math.h.

Constructor & Destructor Documentation

◆ FxMat() [1/2]

template<typename T, int N>
FxMat< T, N >::FxMat ( )
default

◆ FxMat() [2/2]

template<typename T, int N>
FxMat< T, N >::FxMat ( const FxMat< T, N > & )
default

Member Function Documentation

◆ data() [1/2]

template<typename T, int N>
const T * FxMat< T, N >::data ( ) const
inlineconstexprnoexcept

Definition at line 439 of file Math.h.

◆ data() [2/2]

template<typename T, int N>
T * FxMat< T, N >::data ( )
inlineconstexprnoexcept

Definition at line 438 of file Math.h.

◆ operator()() [1/2]

template<typename T, int N>
const T & FxMat< T, N >::operator() ( int row,
int col ) const
inlineconstexprnoexcept

Definition at line 437 of file Math.h.

◆ operator()() [2/2]

template<typename T, int N>
T & FxMat< T, N >::operator() ( int row,
int col )
inlineconstexprnoexcept

Definition at line 436 of file Math.h.

◆ operator=()

template<typename T, int N>
FxMat & FxMat< T, N >::operator= ( const FxMat< T, N > & ) &
default

◆ row()

template<typename T, int N>
FxVec< T, N > FxMat< T, N >::row ( int r) const
inlineconstexprprotectednoexcept

Definition at line 459 of file Math.h.

◆ operator* [1/2]

template<typename T, int N>
FxMat operator* ( const FxMat< T, N > & lhs,
const FxMat< T, N > & rhs )
friend

Definition at line 448 of file Math.h.

◆ operator* [2/2]

template<typename T, int N>
FxVec< T, N > operator* ( const FxMat< T, N > & m,
const FxVec< T, N > & v )
friend

Definition at line 442 of file Math.h.


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