1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-20 09:34:26 +00:00

Renamed Line::offset to extend

Don't use unscaled constants! What if the scaling constant changes
in the future?
This commit is contained in:
Vojtech Bubnik
2020-10-20 09:17:26 +02:00
parent 958acad85b
commit 3e50699576
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ bool Line::clip_with_bbox(const BoundingBox &bbox)
return result;
}
void Line::offset(double offset)
void Line::extend(double offset)
{
Vector offset_vector = (offset * this->vector().cast<double>().normalized()).cast<coord_t>();
this->a -= offset_vector;