X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Ftransformmatrix.cpp;h=5146ad1b653f81ce4122d494896f46cf7f6deadb;hp=12c51926491d68f3cc7688e3b8cef57bb03944b1;hb=9f29c8b32c972db1178d6f8551d5cd57ceb67083;hpb=711cae0ee02e046370fdb4d6c6f440596ff71980 diff --git a/libctgraphics/transformmatrix.cpp b/libctgraphics/transformmatrix.cpp index 12c5192..5146ad1 100644 --- a/libctgraphics/transformmatrix.cpp +++ b/libctgraphics/transformmatrix.cpp @@ -7,9 +7,9 @@ ** Date Started: 1-22-85 ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg +** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: transformmatrix.cpp,v 1.1 2000/07/28 08:28:08 kevin Exp $ +** $Id: transformmatrix.cpp,v 1.5 2001/01/28 19:10:18 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -25,9 +25,9 @@ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ +#include #include "ctsupport.h" #include "transformmatrix.h" -#include TransformationMatrix2D::TransformationMatrix2D (double m[3][3]) @@ -93,8 +93,8 @@ TransformationMatrix2D::invert () const double determ = determinant (); if (fabs(determ) < 1E-6) { sys_error (ERR_WARNING, "Determinant = %g [TransformationMatrix2D::invert]", determ); - print (cout); - cout << endl; + print (std::cout); + std::cout << std::endl; } b[0][0] = (mtx[1][1] * mtx[2][2] - mtx[2][1] * mtx[1][2]) / determ; @@ -134,11 +134,11 @@ TransformationMatrix2D::transformPoint (double* pX, double *pY) const } void -TransformationMatrix2D::print (ostream& ostr) const +TransformationMatrix2D::print (std::ostream& ostr) const { - cout << mtx[0][0] << " " << mtx[0][1] << " " << mtx[0][2] << endl; - cout << mtx[1][0] << " " << mtx[1][1] << " " << mtx[1][2] << endl; - cout << mtx[2][0] << " " << mtx[2][1] << " " << mtx[2][2] << endl; + std::cout << mtx[0][0] << " " << mtx[0][1] << " " << mtx[0][2] << std::endl; + std::cout << mtx[1][0] << " " << mtx[1][1] << " " << mtx[1][2] << std::endl; + std::cout << mtx[2][0] << " " << mtx[2][1] << " " << mtx[2][2] << std::endl; }