X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fxform.cpp;h=9836e26c30fe36922d8e28cc60dfde95cc81f58a;hp=abf47500ad675a5b15ac96e8ac253c69d4fb5182;hb=e289f8ecb69ba183b32e32ff20f1679f4b62194d;hpb=12e2c29153a0f55ac23bdeec06b404638672985b diff --git a/libctsupport/xform.cpp b/libctsupport/xform.cpp index abf4750..9836e26 100644 --- a/libctsupport/xform.cpp +++ b/libctsupport/xform.cpp @@ -2,7 +2,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: xform.cpp,v 1.2 2000/06/19 19:04:05 kevin Exp $ +** $Id: xform.cpp,v 1.3 2000/06/19 19:10:08 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 @@ -122,7 +122,7 @@ rot_mtx2 (GRFMTX_2D m, const double theta) } void -mult_mtx2 (GRFMTX_2D m1, GRFMTX_2D m2, GRFMTX_2D result) +mult_mtx2 (const GRFMTX_2D m1, const GRFMTX_2D m2, GRFMTX_2D result) { GRFMTX_2D temp; @@ -139,7 +139,7 @@ mult_mtx2 (GRFMTX_2D m1, GRFMTX_2D m2, GRFMTX_2D result) } void -xform_mtx2 (GRFMTX_2D m, double& x, double& y) +xform_mtx2 (const GRFMTX_2D m, double& x, double& y) { double xt = x * m[0][0] + y * m[1][0] + m[2][0]; double yt = x * m[0][1] + y * m[1][1] + m[2][1];