Calculando matriz inversa 4x4 c++
Aquí les comparto el código que encontré, funciona para calcular la matriz inversa en c++ #ifndef OPENTISSUE_CORE_MATH_MATH_INVERT4x4_H #define OPENTISSUE_CORE_MATH_MATH_INVERT4x4_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php // #include <OpenTissue/configuration.h> namespace OpenTissue { namespace math { template < typename real_type > inline void invert4x4 ( real_type M [ 4 ][ 4 ]) { real_type a00 = M [ 0 ][ 0 ]; real_type a01 = M [ 0 ][ 1 ]; real_type a02 = M [ 0 ][ 2 ]; real_type a03 = M [ 0 ][ 3 ]; real_type a10 = M [ 1 ][ 0 ]; re...