Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxMat2f Class Reference

2×2 floating-point matrix. More...

#include <Math.h>

Inheritance diagram for FxMat2f:
Collaboration diagram for FxMat2f:

Public Member Functions

 FxMat2f ()=default
 FxMat2f (const FxMat< float, 2 > &m)
float & a ()
float & b ()
float & c ()
float & d ()
float a () const
float b () const
float c () const
float d () const
void set_a (float val)
void set_b (float val)
void set_c (float val)
void set_d (float val)
FxMat2f inv_rotation () const
Public Member Functions inherited from FxMat< float, 2 >
 FxMat ()=default
FxMat & operator= (const FxMat &) &=default
constexpr float & operator() (int row, int col) noexcept
constexpr float * data () noexcept

Additional Inherited Members

Protected Member Functions inherited from FxMat< float, 2 >
constexpr FxVec< float, N > row (int r) const noexcept

Detailed Description

2×2 floating-point matrix.

Definition at line 470 of file Math.h.

Constructor & Destructor Documentation

◆ FxMat2f() [1/2]

FxMat2f::FxMat2f ( )
default

◆ FxMat2f() [2/2]

FxMat2f::FxMat2f ( const FxMat< float, 2 > & m)
inline

Definition at line 474 of file Math.h.

Member Function Documentation

◆ a() [1/2]

float & FxMat2f::a ( )
inline

Definition at line 476 of file Math.h.

◆ a() [2/2]

float FxMat2f::a ( ) const
inline

Definition at line 482 of file Math.h.

◆ b() [1/2]

float & FxMat2f::b ( )
inline

Definition at line 477 of file Math.h.

◆ b() [2/2]

float FxMat2f::b ( ) const
inline

Definition at line 483 of file Math.h.

◆ c() [1/2]

float & FxMat2f::c ( )
inline

Definition at line 478 of file Math.h.

◆ c() [2/2]

float FxMat2f::c ( ) const
inline

Definition at line 484 of file Math.h.

◆ d() [1/2]

float & FxMat2f::d ( )
inline

Definition at line 479 of file Math.h.

◆ d() [2/2]

float FxMat2f::d ( ) const
inline

Definition at line 485 of file Math.h.

◆ inv_rotation()

FxMat2f FxMat2f::inv_rotation ( ) const
inline

Definition at line 493 of file Math.h.

◆ set_a()

void FxMat2f::set_a ( float val)
inline

Definition at line 487 of file Math.h.

◆ set_b()

void FxMat2f::set_b ( float val)
inline

Definition at line 488 of file Math.h.

◆ set_c()

void FxMat2f::set_c ( float val)
inline

Definition at line 489 of file Math.h.

◆ set_d()

void FxMat2f::set_d ( float val)
inline

Definition at line 490 of file Math.h.


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