I need to calculate the coordinates of two corners of an equilateral triangle if I have the coordinates of the center, the coordinates of one corner point, and the distance from the center to a point. This is for a Java program I'm writing, and it's been a while since I did math like this. The numbers are going to be constantly changing (I need to write the code so these calculations can be done repeatedly), but for the purposes of an example, here are some sample numbers.
Center Point: (153, 144)
Corner Point: (240, 121)
Distance = 83.9
Please clarify what you mean by "the distance from the center to a point" - what point are you referring to? I believe all you need to define the equilateral triangle is the coordinates of one corner plus the center. In the previous post brosnan123 shows how to calculate a point on the edge of the triangle directly opposite the known corner point. This edge point can then be used to calsulate the equation of that base line - it's slope is perpendicular to the line from the known corner to this edge point, so the equation of the base is straight-forward. Then the two corner points on that base line are the points that are distance sqrt(3)/2 times the distance from the known corner point to the center of the triangle.