2 Copyright (C) 2009 Sony Computer Entertainment Inc.
3 All rights reserved.
5This software is provided 'as-is', without any express or implied warranty.
6In no event will the authors be held liable for any damages arising from the use of this software.
7Permission is granted to anyone to use this software for any purpose,
8including commercial applications, and to alter it and redistribute it freely,
9subject to the following restrictions:
111. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
122. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
133. This notice may not be removed or altered from any source distribution.
1592// Compute the absolute value of a 4x4 matrix per element
1594inlineconst Matrix4 absPerElem( const Matrix4 & mat );
1596// Transpose of a 4x4 matrix
1598inlineconst Matrix4 transpose( const Matrix4 & mat );
1600// Compute the inverse of a 4x4 matrix
1602// Result is unpredictable when the determinant of mat is equal to or near 0.
1604inlineconst Matrix4 inverse( const Matrix4 & mat );
1606// Compute the inverse of a 4x4 matrix, which is expected to be an affine matrix
1608// This can be used to achieve better performance than a general inverse when the specified 4x4 matrix meets the given restrictions. The result is unpredictable when the determinant of mat is equal to or near 0.