Exemple #1
0
/* m_preMultiply is used o multiply on the left or on the right
 * M' = mat x M (if m_preMultiply) or M' = M x Mat (if not m_preMultiply)
 * \param mat Matrix to concatenate.
 */
void TMatrix3D::concatTransform(TMatrix3D mat) {
		if ( m_preMultiply )
	        preMultiply(mat.m_Matrix);
		else
			postMultiply(mat.m_Matrix);
}
Exemple #2
0
/*! Postmultiplication is used by inverse transformations.
 * M' = M x mat
 * \param mat Matrix to concatenate on the right.
 */
void TMatrix3D::postMultiply(TMatrix3D mat) {
        postMultiply(mat.m_Matrix);
}
Exemple #3
0
/* m_preMultiply is used o multiply on the left or on the right
 * M' = mat x M (if m_preMultiply) or M' = M x Mat (if not m_preMultiply)
 * \param mat Matrix (RenderMan RtMatrix) to concatenate.
 */
void TMatrix3D::concatTransform(RtMatrix mat) {
		if ( m_preMultiply )
			preMultiply(mat);
		else
			postMultiply(mat);
}
 //-----------------------------------------------------------------------------
 Matrix2& operator*=(const Matrix2& m)
 {
   return postMultiply(m);
 }