java JavaFX矩形旋转轴从左上角以外的点开始
我已经使用构造函数将JavaFxRotation
应用于矩形,该构造函数允许您设置轴
new Rotate(45, 15, 15)
这会旋转矩形,但它会围绕放置它的AnchorPane
上的15,15
左上角旋转。是否可以围绕一个点旋转一个矩形,该点的作用类似于圆心,并且该矩形围绕圆周旋转。与矩形类似,轮胎上的一块胎面围绕中心轴旋转。谢谢你
你可以在下面搜索框中键入要查询的问题!
我已经使用构造函数将JavaFxRotation
应用于矩形,该构造函数允许您设置轴
new Rotate(45, 15, 15)
这会旋转矩形,但它会围绕放置它的AnchorPane
上的15,15
左上角旋转。是否可以围绕一个点旋转一个矩形,该点的作用类似于圆心,并且该矩形围绕圆周旋转。与矩形类似,轮胎上的一块胎面围绕中心轴旋转。谢谢你
# 1 楼答案
这对我有用,但我不确定你在做什么
我将轴设置为elipse的中心,然后使用时间线将角度从0更改为360