- Remove now-unused interpolation methods from DCoreActor class.

This commit is contained in:
Mitchell Richters 2022-09-07 14:23:16 +10:00 committed by Christoph Oelckers
parent 39ac3b44b0
commit f5dda2909a

View file

@ -205,46 +205,11 @@ public:
vel = { 0,0,0 };
}
// Same as above but with inverted y and z axes to match the renderer's coordinate system.
double interpolatedx(double const smoothratio, int const scale = 16)
{
return __interpvaluef(opos.X, spr.pos.X, smoothratio, scale);
}
double interpolatedy(double const smoothratio, int const scale = 16)
{
return __interpvaluef(opos.Y, spr.pos.Y, smoothratio, scale);
}
double interpolatedz(double const smoothratio, int const scale = 16)
{
return __interpvaluef(opos.Z, spr.pos.Z, smoothratio, scale);
}
DVector3 interpolatedvec3(double const interpfrac)
{
return ::interpolatedvalue(opos, spr.pos, interpfrac);
}
int32_t __interpolatedx(double const smoothratio, int const scale = 16)
{
return interpolatedx(smoothratio, scale) * worldtoint;
}
int32_t __interpolatedy(double const smoothratio, int const scale = 16)
{
return interpolatedy(smoothratio, scale) * worldtoint;
}
int32_t __interpolatedz(double const smoothratio, int const scale = 16)
{
return interpolatedz(smoothratio, scale) * zworldtoint;
}
DAngle interpolatedangle(double const interpfrac)
{
return ::interpolatedvalue(oang, spr.angle, interpfrac);