Add get_distance() and draw_line()

This commit is contained in:
thewildmage
2023-05-30 15:35:54 -06:00
parent c999eeebf8
commit b0fa9fa50d
2 changed files with 37 additions and 1 deletions

View File

@@ -94,7 +94,9 @@ class calib_pressure_advance_pattern: public calib_pressure_advance
double object_size_y(double start_pa, double step_pa, int num_patterns);
double max_numbering_height();
double pattern_shift();
double get_distance(double cur_x, double cur_y, double to_x, double to_y);
std::string draw_line(double to_x, double to_y, double line_width, double layer_height, std::string comment = std::string());
private:
int m_anchor_layer_line_ratio {140};
int m_anchor_perimeters {4};