[Teleus-cvs] teleus/src/math matrix.cpp,1.7,1.8 matrix.hpp,1.6,1.7
Status: Inactive
Brought to you by:
spiffgq
|
From: Daniel R. <sp...@us...> - 2004-05-04 18:13:19
|
Update of /cvsroot/teleus/teleus/src/math In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15903/src/math Modified Files: matrix.cpp matrix.hpp Log Message: Updated the comments for Matrix_3X3 Index: matrix.cpp =================================================================== RCS file: /cvsroot/teleus/teleus/src/math/matrix.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** matrix.cpp 25 Feb 2004 06:34:00 -0000 1.7 --- matrix.cpp 4 May 2004 18:12:39 -0000 1.8 *************** *** 40,45 **** /** * ! * \todo Write comments for this function */ Matrix_3X3::Matrix_3X3 () { --- 40,47 ---- /** + * \brief Default ctor [...1106 lines suppressed...] + * + * * \author Daniel Royer */ *************** *** 921,924 **** --- 1546,1558 ---- * \typedef typedef Matrix_3X3 Tensor; * \brief Another name for a 3 by 3 matrix + * + * Tensors are actually a generalization of scalars (0D + * tensors), vectors (1D tensors), and matrices (2D tensors). + * The more common usage for tensors is as a 3x3 matrix. + * + * Tensors are useful for solving problems involving things like + * elasticity, fluid dynamics, general relativity, or inertia + * for non-symetric objects. + * * \author Daniel Royer */ Index: matrix.hpp =================================================================== RCS file: /cvsroot/teleus/teleus/src/math/matrix.hpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** matrix.hpp 25 Feb 2004 06:34:00 -0000 1.6 --- matrix.hpp 4 May 2004 18:12:39 -0000 1.7 *************** *** 8,12 **** * modify it under the terms of the Teleus Artistic License as * detailed on the Teleus website. ! * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED --- 8,12 ---- * modify it under the terms of the Teleus Artistic License as * detailed on the Teleus website. ! * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *************** *** 61,64 **** --- 61,66 ---- void set (const float*); void set (const Matrix_3X3&); + void setDiag (float, bool setZero = true); + void setDiag (float, float, float, bool setZero = true); float& operator[](unsigned int n); *************** *** 69,73 **** --- 71,77 ---- float det() const; + void transpose(); Matrix_3X3 transposed() const; + void inverse(); Matrix_3X3 inversed() const; |