Hi chris, I created a function something like this public void pointX(int x1, int y1, int x2, int y2, int dis,out float newX,out float newY) { float ygrad = y2 - y1; float xgrad = x2 - x1; ygrad /= 100; xgrad /= 100; newY = (dis * ygrad) + y1; newX = (dis * xgrad) + x1; } It is working fine... The requirement was that i need to draw some circles depending on some percentage, whose center will be an offset from the side of a triangle, where offset is the percentage. Any way thank you for that idea.. Have a nice day.
Thanks Laddie Kindly rate if the answer was helpful