How to rotate UIBezierPath around center of its own bounds?
问题 Lets say we have a UIBezierPath... the bounds of which are perfectly square... like this: func getExponentPath(rotate180: Bool) -> UIBezierPath { // establish unit of measure (grid) based on this containing view's bounds... (not to be confused with this bezierpath's bounds) let G = bounds.width / 5 let exponentPath = UIBezierPath() let sstartPoint = CGPoint(x:(3.8)*G,y:(1.2)*G) exponentPath.move(to: sstartPoint) exponentPath.addLine(to: CGPoint(x:(5)*G,y:(1.2)*G)) exponentPath.addLine(to: