Skip to content

Commit 94c6544

Browse files
committed
geometry: Remove unnecessary if condition
1 parent 17d7b26 commit 94c6544

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sympy/geometry/curve.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,8 @@ def rotate(self, angle=0, pt=None):
370370
f = Matrix(1, 3, f)
371371
f *= rot_axis3(angle)
372372
rv = self.func(f[0, :2].tolist()[0], self.limits)
373-
if pt is not None:
374-
pt = -pt
375-
return rv.translate(*pt.args)
376-
return rv
373+
pt = -pt
374+
return rv.translate(*pt.args)
377375

378376
def scale(self, x=1, y=1, pt=None):
379377
"""Override GeometryEntity.scale since Curve is not made up of Points.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy