X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Finterpolator.h;h=94b9b1227b0d4648f93765291ad5e732daf5fb93;hb=8e3ba3d86e5b1293140adab70ecc0b6a20e2f651;hp=1b1fc484b2fc24b63f382dff5cd522e10ecce587;hpb=320062d4d1e53ab9da799c77e9886b1e36cddcf5;p=ctsim.git diff --git a/include/interpolator.h b/include/interpolator.h index 1b1fc48..94b9b12 100644 --- a/include/interpolator.h +++ b/include/interpolator.h @@ -2,7 +2,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: interpolator.h,v 1.4 2001/03/24 05:28:28 kevin Exp $ +** $Id: interpolator.h,v 1.6 2002/06/27 01:48:25 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 @@ -53,8 +53,8 @@ template class BilinearInterpolator { private: T** const m_ppMatrix; - const unsigned int m_nx; - const unsigned int m_ny; + const int m_nx; + const int m_ny; public: BilinearInterpolator (T** ppMatrix, unsigned int nx, unsigned int ny) @@ -63,8 +63,8 @@ public: T interpolate (double dXPos, double dYPos) { - int iFloorX = floor (dXPos); - int iFloorY = floor (dYPos); + int iFloorX = static_cast(floor(dXPos)); + int iFloorY = static_cast(floor (dYPos)); double dXFrac = dXPos - iFloorX; double dYFrac = dYPos - iFloorY;