mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 02:52:10 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user