我想根据角度在屏幕上旋转CGPoint,旋转锚定在另一个点上.想知道最有效的方法是什么?
iphone math rotation
好的,所以我想在CGPoint周围旋转CGPoint(A)50度(B)有一个很好的方法吗?
CGPoint(A)= CGPoint(x: 50, y: 100)
CGPoint(x: 50, y: 100)
CGPoint(B)= CGPoint(x: 50, y: 0)
CGPoint(x: 50, y: 0)
这就是我想要做的事情:
math rotation degrees cgpoint swift
math ×2
rotation ×2
cgpoint ×1
degrees ×1
iphone ×1
swift ×1