How to calculate the position of point C that has a specific distance to A?

前端 未结 0 534
误落风尘
误落风尘 2021-01-17 16:50

I have two points: A and B. I know how to calculate the angle between the two points and create a line.

 func angle(p1: CGPoint, p2: CGPoint) -> CGFloat{
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题