Marthee commited on
Commit
366229e
·
verified ·
1 Parent(s): 9614cb9

Update dxf__omar3_2.py

Browse files
Files changed (1) hide show
  1. dxf__omar3_2.py +3 -3
dxf__omar3_2.py CHANGED
@@ -1,4 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
  """Version to be deployed of 3.2 Calculating area/perimeter
3
 
4
  Automatically generated by Colab.
@@ -373,7 +373,7 @@ def rotate_point(point, angle,pdfrotation,width,height, center_point=(0, 0)):
373
  # Reverse the shifting we have done
374
  if pdfrotation!=0:
375
 
376
- new_point = (new_point[0]+,width + center_point[0], new_point[1] + center_point[1]) #pdfsize[2] is the same as +width
377
  else:
378
 
379
  new_point = (new_point[0] + center_point[0], new_point[1]+ height + center_point[1]) # pdfsize[3] is the same as +height
@@ -389,7 +389,7 @@ def rotate_polygon(polygon, angle, pdfrotation,width,height,center_point=(0, 0))
389
  """
390
  rotated_polygon = []
391
  for corner in polygon:
392
- rotated_corner = rotate_point(corner, angle,pdfrotation,pdfsize, center_point)
393
  rotated_polygon.append(rotated_corner)
394
  return rotated_polygon
395
 
 
1
+ # -*- coding: utf-8 -*-wj
2
  """Version to be deployed of 3.2 Calculating area/perimeter
3
 
4
  Automatically generated by Colab.
 
373
  # Reverse the shifting we have done
374
  if pdfrotation!=0:
375
 
376
+ new_point = (new_point[0]+width + center_point[0], new_point[1] + center_point[1]) #pdfsize[2] is the same as +width
377
  else:
378
 
379
  new_point = (new_point[0] + center_point[0], new_point[1]+ height + center_point[1]) # pdfsize[3] is the same as +height
 
389
  """
390
  rotated_polygon = []
391
  for corner in polygon:
392
+ rotated_corner = rotate_point(corner, angle,pdfrotation,width,height, center_point)
393
  rotated_polygon.append(rotated_corner)
394
  return rotated_polygon
395