@Visigoth - Yep. I forgot that.
This is what I got:
Dist1_3# = Dist3D(X1#, Y1#, Z1#, X3#, Y3#, Z3#)
Dist1_2# = Dist3D(X1#, Y1#, Z1#, X2#, Y2#, Z2#)
Dist2_3# = Dist3D(X2#, Y2#, Z2#, X3#, Y3#, Z3#)
Angle1# = ATanFull(Dist1_2#, Dist1_3#)
Angle2# = ATanFull(Dist1_2#, Dist2_3#)
Angle3# = ATanFull(Dist1_3#, Dist2_3#)
The internal distances are:
Int_Dist1_3#
Int_Dist1_2#
Int_Dist2_3#
I know these internal distances from some other algorithms.
Quote: "get_coordinates(aA#,aB#,aC#,sa#,sb#,sc#,eaA#,eaB#,eaC#,esa#,esb#,esc#)"
This function is what I confusing me a bit.
This is what I have so far:
//internal tri
xA# = 0.0
yA# = 0.0
//this would be the "random" point in the middle of the problem
xC# = Dist1_3# * (Cos(Angle1#))
yC# = Dist1_3# * (Sin(Angle1#))
xB# = Dist1_2#
yB# = 0.0
//external
e_xA# = 0.0
e_yA# = 0.0
e_xC# = esb# * (cos(eaA#))
e_yC# = esb# * (sin(eaA#))
e_xB# = esc#
e_yB# = 0.0
I revised this:
I have angles Angle1#, Angle2#, Angle3# corresponding to points 1, 2, 3. I have A#, B#, C#, E#, F# corresponding to a, b, c, d, e, f.
The Type:
The function is:
FindPointInTriangle(A#, B#, C#, D#, E#, F#, Angle1#, Angle2#, Angle3#)
Point As Point2D
` Point.X =
` Point.Y =
EndFunction Point
You stated: xA,yA is the coords. I think that is (X, Y). The point I am trying to find.
I am just a bit lost is all with your variables and forgot about those internal distances.
Thanks,
DigitalFury