cleanup long comment

issue-171
Andrew Port 2022-07-09 19:38:28 -03:00
parent d8a6e5e509
commit 9ac7f62515
1 changed files with 3 additions and 1 deletions

View File

@ -311,10 +311,12 @@ def transform(curve, tf):
return bpoints2bezier([to_complex(tf.dot(to_point(p))) return bpoints2bezier([to_complex(tf.dot(to_point(p)))
for p in curve.bpoints()]) for p in curve.bpoints()])
elif isinstance(curve, Arc): elif isinstance(curve, Arc):
if curve == Arc(start=(-3600000-31200000j), radius=(400000+400000j), rotation=0.0, large_arc=True, sweep=False, end=(-2800000-31200000j)):
from IPython import embed; embed() ### DEBUG
new_start = to_complex(tf.dot(to_point(curve.start))) new_start = to_complex(tf.dot(to_point(curve.start)))
new_end = to_complex(tf.dot(to_point(curve.end))) new_end = to_complex(tf.dot(to_point(curve.end)))
# Based on https://math.stackexchange.com/questions/2349726/compute-the-major-and-minor-axis-of-an-ellipse-after-linearly-transforming-it # Based on https://math.stackexchange.com/questions/2349726/
rx2 = curve.radius.real ** 2 rx2 = curve.radius.real ** 2
ry2 = curve.radius.imag ** 2 ry2 = curve.radius.imag ** 2