@@ -193,12 +193,12 @@ def segment_line(
193
193
194
194
return (
195
195
f"{ coordinates1 } { coordinates2 } : "
196
- f"{ cyan_bright_text ('LINE' )} { round (distance , 2 ): .2f} units"
196
+ f"{ cyan_bright_text ('LINE' )} { round (distance , 2 ):.2f} units"
197
197
)
198
198
else :
199
199
return (
200
200
f"({ coord1 .x } ,{ coord1 .y } ) ({ coord2 .x } ,{ coord2 .y } ): "
201
- f"LINE { round (distance , 2 ): .2f} units"
201
+ f"LINE { round (distance , 2 ):.2f} units"
202
202
)
203
203
204
204
@@ -224,15 +224,17 @@ def segment_quadratic_curve(
224
224
225
225
if coord3 .startpoint :
226
226
coordinates3 = f"{ green_start } ({ coord3 .x } ,{ coord3 .y } ){ reset } "
227
+ elif coord3 .endpoint :
228
+ coordinates3 = f"{ red_start } ({ coord3 .x } ,{ coord3 .y } ){ reset } "
227
229
else :
228
230
coordinates3 = f"({ coord3 .x } ,{ coord3 .y } )"
229
231
230
232
return (
231
- f"{ coordinates1 } { coordinates2 } { coordinates3 } "
232
- f"{ cyan_bright_text ('QCURVE' )} { round (distance , 2 ): .2f} units"
233
+ f"{ coordinates1 } { coordinates2 } { coordinates3 } : "
234
+ f"{ cyan_bright_text ('QCURVE' )} { round (distance , 2 ):.2f} units"
233
235
)
234
236
else :
235
237
return (
236
- f"({ coord1 .x } ,{ coord1 .y } ) ({ coord2 .x } ,{ coord2 .y } ) ({ coord3 .x } ,{ coord3 .y } ) "
237
- f"QCURVE { round (distance , 2 ): .2f} units"
238
+ f"({ coord1 .x } ,{ coord1 .y } ) ({ coord2 .x } ,{ coord2 .y } ) ({ coord3 .x } ,{ coord3 .y } ): "
239
+ f"QCURVE { round (distance , 2 ):.2f} units"
238
240
)
0 commit comments