EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GaTypes.cpp File Reference
#include "GaTypes.h"
Include dependency graph for GaTypes.cpp:

Go to the source code of this file.

Functions

GaFloat matrix_minor (const GaMat4x4 &m, GaUint r0, GaUint r1, GaUint r2, GaUint c0, GaUint c1, GaUint c2)
 

Function Documentation

GaFloat matrix_minor ( const GaMat4x4 m,
GaUint  r0,
GaUint  r1,
GaUint  r2,
GaUint  c0,
GaUint  c1,
GaUint  c2 
)

Definition at line 48 of file GaTypes.cpp.

Referenced by Ga::GaMat4x4::adjoint(), and Ga::GaMat4x4::determinant().

49 {
50  return m[r0][c0] * (m[r1][c1] * m[r2][c2] - m[r2][c1] * m[r1][c2]) -
51  m[r0][c1] * (m[r1][c0] * m[r2][c2] - m[r2][c0] * m[r1][c2]) +
52  m[r0][c2] * (m[r1][c0] * m[r2][c1] - m[r2][c0] * m[r1][c1]);
53 }

Here is the caller graph for this function: