Click here to Skip to main content
15,918,889 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow17-Oct-08 18:05
Arash Partow17-Oct-08 18:05 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
Chesnokov Yuriy17-Oct-08 20:55
professionalChesnokov Yuriy17-Oct-08 20:55 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow18-Oct-08 4:31
Arash Partow18-Oct-08 4:31 
There are two ways of solving this problem, one is to do it algebraically by solving a set quartics based around the circumcircle, the other is simple geometric constructions.

I'll explain the 2nd one as its easier to understand and much easier to program a solution for.

1. Extend perpendiculars to the segment AB, 2 segments one each centered at A and B.
2. The end points for these 2 segments will be called A_0,A_1 and B_0,B_1
3. Extend diagonals from A_0 to B_1 and B_0 to A_1
4. The mid points between A and A_0 will be A_2, similar for the other side B_2
5. Extend diagonals from A_2 to B_0 and from B_2 to A_0
6. The intersection point between the segments A_2B_0 and A_0B_1 will be x_0, similar for the other two diagonals
7. Extend perpendiculars from x_0 and x_1 upon A_0B_0, the points of intersection will be p_0 and p_1
8. Extend segments from A to p_0 and B to p_1, called s_0 and s_1
9. The intersection point between s_0 and A_0B_1 will be C_0
10. The intersection point between s_1 and B_0A_1 will be C_1
11. Symmetric solution can be found by mirroring C_0 and C_1 about AB

A diagram of the solution can be found here:

http://www.partow.net/images/90degreetriangle.png[^]


Various routines in Wykobi can be used in conjunction with each other to solve this construction.
(perpendicular,mirror,project,closest_point_on_segment_from_point etc...)


have fun Smile | :)
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 419459318-Oct-08 7:11
Member 419459318-Oct-08 7:11 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987618-Oct-08 17:32
cp987618-Oct-08 17:32 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987618-Oct-08 23:38
cp987618-Oct-08 23:38 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow19-Oct-08 6:32
Arash Partow19-Oct-08 6:32 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987619-Oct-08 11:42
cp987619-Oct-08 11:42 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
CPallini19-Oct-08 11:52
mveCPallini19-Oct-08 11:52 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow19-Oct-08 11:56
Arash Partow19-Oct-08 11:56 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp28-Nov-08 20:03
darrellp28-Nov-08 20:03 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987629-Nov-08 14:03
cp987629-Nov-08 14:03 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp29-Nov-08 14:48
darrellp29-Nov-08 14:48 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987629-Nov-08 15:20
cp987629-Nov-08 15:20 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp29-Nov-08 19:58
darrellp29-Nov-08 19:58 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987629-Nov-08 23:06
cp987629-Nov-08 23:06 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp30-Nov-08 7:17
darrellp30-Nov-08 7:17 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98761-Dec-08 15:11
cp98761-Dec-08 15:11 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp1-Dec-08 17:19
darrellp1-Dec-08 17:19 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp1-Dec-08 19:27
darrellp1-Dec-08 19:27 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98762-Dec-08 19:54
cp98762-Dec-08 19:54 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 41945933-Dec-08 3:27
Member 41945933-Dec-08 3:27 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98763-Dec-08 10:19
cp98763-Dec-08 10:19 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 41945933-Dec-08 10:58
Member 41945933-Dec-08 10:58 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98763-Dec-08 13:04
cp98763-Dec-08 13:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.