algorithm - Draw a point a set distance away from a base point -
I am trying to remove an algorithm to find a random point which is a fixed distance from a base point. For:
It is just basic mathematics and my brain can not work yet (I'm sorry, I have not yet coffee :)), but I have gone This is trying to work on paper and I am not getting anywhere.
radius R and center (xc, yc):
x = Xc + r * cos (a); Y = yc + R * sin (A);
Changing the value of 0 to 2 * PI can give you any point on the perimeter.
Comments
Post a Comment