2D Coordinates Rotation and Translation of Triangle in VB
$30-100 USD
Completed
Posted about 13 years ago
$30-100 USD
Paid on delivery
I have a triangle connecting 3 XY coordinates, like A=(3,10), B=(-4,-1) and C=(7,-1) representing a solid triangle. After a movement of the solid triangle, I know the location of 2 of the coordinates, like A=(2.94,9.12), B=(-4.11,-1.33). I need to know the coordinates of the 3rd point.
This must work in a very general case, so that negative angles, angles over 180 degrees, etc do not cause problems. This will probably require matrix math, which I'm not good at.
It would be great if the code was in VB6, but I can translate from most any language since this is probably entirely math expressions.
## Deliverables
* * *This broadcast message was sent to all bidders on Saturday Mar 5, 2011 6:53:05 AM:
From some questions I've gotten, I need to explain further. I have 3 XY points (coordinates) that form a triangle. The triangle moves, by translation, rotation or both. I will provide the 3 old XY coordinates of all 3 points, and the new XY coordinates of 2 of the 3 points to a routine. I need the routine to produce the coordinates of the 3rd, unknown point. I assume from the movement of one of the known points you can determine translation. Then from the change in the relative position of the 2nd known point to the first point you can determine the angle of rotation. From these calculatins you should be able to obtain the translation and rotation and determine the position of the 3rd unknown point.