make operator functions const

This commit is contained in:
2022-07-04 19:53:32 +02:00
parent e16cfcd0c5
commit b38a2aae20
2 changed files with 7 additions and 7 deletions

View File

@ -43,7 +43,7 @@ void Graphics::plot(const Vec2bf &from, const Vec2bf &to)
{
for (double i = 0.0; i < this->w; i++) {
for (double j = 0.0; j < this->h; j++) {
BigFloat f = from.x + (i / this->w) * (from.x - to.x);
BigFloat f = (from.x - to.x) * from.x + (i / this->w);
}
}
}