diff options
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py index 4f3e2208..8480ea0b 100644 --- a/lib/stitches/fill.py +++ b/lib/stitches/fill.py @@ -113,10 +113,10 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non # Now get a unit vector rotated to the requested angle. I use -angle # because shapely rotates clockwise, but my geometry textbooks taught # me to consider angles as counter-clockwise from the X axis. - direction = InkstitchPoint(1, 0).rotate(-angle) + direction = InkstitchPoint(-1, 0).rotate(-angle) # and get a normal vector - normal = direction.rotate(math.pi / 2) + normal = direction.rotate(-math.pi / 2) # I'll start from the center, move in the normal direction some amount, # and then walk left and right half_length in each direction to create |
