- floatified line_t::dx and dy.

This commit is contained in:
Christoph Oelckers 2016-04-05 14:03:08 +02:00
parent f606ba315f
commit ad13a55f0d

View file

@ -1278,7 +1278,7 @@ struct line_t
{
vertex_t *v1, *v2; // vertices, from v1 to v2
private:
fixed_t dx, dy; // precalculated v2 - v1 for side checking
DVector2 delta; // precalculated v2 - v1 for side checking
public:
DWORD flags;
DWORD activation; // activation type
@ -1294,19 +1294,12 @@ public:
DVector2 Delta() const
{
return{ FIXED2DBL(dx), FIXED2DBL(dy) };
}
void setDelta(fixed_t x, fixed_t y)
{
dx = x;
dy = y;
return delta;
}
void setDelta(double x, double y)
{
dx = FLOAT2FIXED(x);
dy = FLOAT2FIXED(y);
delta = { x, y };
}
void setAlpha(double a)