Is there an easy way to do this.
I have a CGPoint
pointA (10, 10) and another CGPoint
pointB (15, 8). I need to get a CGPoint
which is on the same line as the one connecting A and B and at a certain distance (say 2) before point A.
I tried looking around for any vector based struct. There is something called CGVector
but that seems to be pretty useless here.