def scale(self, x=1, y=1, pt=None):
        from sympy.geometry.point import Point
        if pt:
            pt = Point(pt)
            return self.translate(*(-pt).args).scale(x, y).translate(*pt.args)
        return type(self)(*[a.scale(x, y) for a in self.args])  # if this fails, override this class
Scale the object by multiplying the x,y-coordinates by x and y.
dataset/ETHPy150Open sympy/sympy/sympy/geometry/entity.py/GeometryEntity.scale