I\'ve got two points between which im drawing a line (x1,y1 and x2,y2) but i need to know the coordinates of x3,y3 which is gapSize<
x1,y1
x2,y2
x3,y3
gapSize<
You can simply calculate the angle in radians as
double rads = atan2(y2 - y1, x2 - x1);
Then you get the coordinates as follows:
double x3 = x2 + gapSize * cos(rads); double y3 = y2 + gapSize * sin(rads);
Is this what you meant?