I have a line (CAShapeLayer) which is connecting two points. Those two points can be anywhere on the screen and their coordinates are known. The point in the middle
CAShapeLayer