X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsupport%2Fxform.cpp;h=1f9d546a6f2582a65099a991334c6ca0d8ea4fa9;hb=ca7c001fce978b680543f8338a404b8c0701a935;hp=219eb9b7c1bca2d515adec5653a77900d5ad865b;hpb=65d830e8c9dc6cc158159ff722d63bd3d88863e6;p=ctsim.git diff --git a/libctsupport/xform.cpp b/libctsupport/xform.cpp index 219eb9b..1f9d546 100644 --- a/libctsupport/xform.cpp +++ b/libctsupport/xform.cpp @@ -1,8 +1,8 @@ /***************************************************************************** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg +** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: xform.cpp,v 1.4 2000/12/04 04:44:03 kevin Exp $ +** $Id: xform.cpp,v 1.6 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 @@ -131,9 +131,9 @@ mult_mtx2 (const GRFMTX_2D m1, const GRFMTX_2D m2, GRFMTX_2D result) temp[row][col] = 0; for (int calc = 0; calc < 3; calc++) temp[row][col] += m1[row][calc] * m2[calc][col]; - } - } - + } + } + for (int r = 0; r < 3; r++) for (int col = 0; col < 3; col++) result[r][col] = temp[r][col];