Python Sympy Ellipse.rotate()方法
在Sympy中,函数rotate()是用来将椭圆围绕给定的点逆时针旋转给定角度的。
语法: Ellipse.rotate(angle=0, pt=None)
参数:
angle: 弧度
pt: 椭圆被逆时针旋转的点。
返回: 旋转的椭圆。
示例 #1:
输出:
示例 #2:
输出:
在Sympy中,函数rotate()是用来将椭圆围绕给定的点逆时针旋转给定角度的。
语法: Ellipse.rotate(angle=0, pt=None)
参数:
angle: 弧度
pt: 椭圆被逆时针旋转的点。
返回: 旋转的椭圆。
示例 #1:
输出:
示例 #2:
输出: