【发布时间】:2018-02-22 02:40:08
【问题描述】:
我有目标 c 应用程序。在 ViewController 中我有一个 UIView,在这个视图中我用 UIBezierPath 画了一个圆圈,代码如下:
CAShapeLayer* clockWiseLayer = [[CAShapeLayer alloc] init];
clockWiseLayer.path = [UIBezierPath bezierPathWithArcCenter:centerPoint
radius:radius
startAngle:startAngle
endAngle:endAngle
clockwise:YES].CGPath;
然后我想知道点到部分的中心或半径到部分圆弧中心的中心是这样的:
我怎样才能得到这一点?如果我知道角度的终点、起点、半径大小,该点的值是多少,我该如何计算?
【问题讨论】:
标签: ios objective-c uibezierpath cashapelayer cgpoint