vonWolfehaus
- 3
- 0
Homework Statement
I need to find the x,y coordinates of the points that neighbor a center point that has been rotated around yet another point. An illustration is best:
http://coldconstructs.com/random/point_prob.png
Given: point of origin, angle, p1, p2
Needed: p1 a, b, c etc, p2 a, b, c, etc
Homework Equations
for p1/p2 I just do:
ax = cosine(angle)
ay = sine(angle)
new x = ax * distance from origin + origin x
new y = ay * distance from origin + origin y
The Attempt at a Solution
I thought I just add/subtract an amount somehow, somewhere? Tried, couldn't find the right stuff.