Need Help Triangulating a point in 2D space

gummby8

New member
Joined
Sep 22, 2014
Messages
15
2uhscuw.png



I am trying to solve for the Y , Y coordinates listed as ???

All the variables that are available to me without calculating for them are known and listed.

The point in space at which the triangle rotates is static, the length and width are also static. But the rotation angle varies.

How can I solve for the ??? Coordinates?
 
2uhscuw.png



I am trying to solve for the Y , Y coordinates listed as ???

All the variables that are available to me without calculating for them are known and listed.

The point in space at which the triangle rotates is static, the length and width are also static. But the rotation angle varies.

How can I solve for the ??? Coordinates?
First, just to avoid more algebra, I would translate the system to a u-v co-ordinate system where
u = x - 15
and
v = y - 50.
Thus the rotation point is (u0, v0) = (0,0) and I assume the rotation angle is measured from the vertical to the longer leg of the right triangle.

The long way around: Given that, what is the line L0 containing that longer leg? Well it goes through the point (0,0) and has slope
s0 = ?.
Thus L0 is given by
L0: v = s0 u

Now let the point on the triangle 20 units from (0,0) be given by (u1, v1) [the point which would have been (x,y)=(15,30) for Angle=0]. (u1, v1) lies on line L0 and
u12 + v12 = 202 = 400.
So what are u1 and v1? BTW: Be careful about which root you choose.

Now let the point on the triangle 10 units from (u1, v1) be given by (u2, v2) [the point which would have been (x,y)=(25,30) for Angle=0] and L1 be the line containing the shorter leg of the right triangle. It goes through (u1, v1) and has slope
s1 = ?.
(Hint: L1 is perpendicular to L0) Thus L1 is given by
L1: v = v1 + s1 (u - u1)
and, since (u2, v2) is on line L1 and 10 units away from (u1, v1) we also have
(u2 - u1)2 + (v2 - v1)2 = 102 = 100
So what are u2 and v2?

Shorter way around: Determine the angle and length of the hypotenuse and you only have one line to go through. Given the Angle=0 triangle, it should be easy to get the angle and then the angle of the rotation of the hypotenuse is in a direct relationship to the given Angle of rotation.

And even shorter way: Figure out what it is in the base system and then apply the transformation of coordinate system for the given angle.

EDIT: Oh, and I almost forgot. Be careful computing those slopes.
 
Last edited:
I had to re-figure how to ask this question, and when I did I was able to google the answer a bit better

TwadC.png



[FONT=MathJax_Math-italic]x[/FONT][FONT=MathJax_Main]′[/FONT][FONT=MathJax_Main]=Width * [/FONT][FONT=MathJax_Main]cos[/FONT][FONT=MathJax_Main](angle[/FONT][FONT=MathJax_Main]) - Length * [/FONT][FONT=MathJax_Main]sin[/FONT][FONT=MathJax_Main](angle[/FONT][FONT=MathJax_Main])[/FONT]

[FONT=MathJax_Math-italic]y[/FONT][FONT=MathJax_Main]′[/FONT][FONT=MathJax_Main]=[/FONT][FONT=MathJax_Main]Width * [/FONT][FONT=MathJax_Main]sin[/FONT][FONT=MathJax_Main](angle[/FONT][FONT=MathJax_Main]) + Length * [/FONT][FONT=MathJax_Main]cos[/FONT][FONT=MathJax_Main](angle[/FONT][FONT=MathJax_Main])

[/FONT]
[FONT=MathJax_Math-italic]x[FONT=MathJax_Main]′[/FONT][FONT=MathJax_Main]=[/FONT][FONT=MathJax_Main]3[/FONT][FONT=MathJax_Main]cos[/FONT][FONT=MathJax_Main]([/FONT][FONT=MathJax_Main]35[/FONT][FONT=MathJax_Main])[/FONT][FONT=MathJax_Main]+[/FONT][FONT=MathJax_Main]5[/FONT][FONT=MathJax_Main]sin[/FONT][FONT=MathJax_Main]([/FONT][FONT=MathJax_Main]35[/FONT][FONT=MathJax_Main])[/FONT][FONT=MathJax_Main]≈[/FONT][FONT=MathJax_Main]5.33[/FONT][/FONT]

[FONT=MathJax_Math-italic]y[FONT=MathJax_Main]′[/FONT][FONT=MathJax_Main]=[/FONT][FONT=MathJax_Main]3[/FONT][FONT=MathJax_Main]sin[/FONT][FONT=MathJax_Main]([/FONT][FONT=MathJax_Main]35[/FONT][FONT=MathJax_Main])[/FONT][FONT=MathJax_Main]−[/FONT][FONT=MathJax_Main]5[/FONT][FONT=MathJax_Main]cos[/FONT][FONT=MathJax_Main]([/FONT][FONT=MathJax_Main]35[/FONT][FONT=MathJax_Main])[/FONT][FONT=MathJax_Main]≈[/FONT][FONT=MathJax_Main]−[/FONT][FONT=MathJax_Main]2.38[/FONT][/FONT]

The picture is actualy using an angle of 30 (>.<)

Anyway, thank you for the help :)
 
Last edited:
Ishuda, agree with this "attack"? :

Givens:
right triangle ABC: legs BC=a, AC=b
w (degrees) = rotation angle

Triangle ABC rotates such that A is at origin, B is on circumference
of circle radius = hypotenuse, C (the right angle) is inside the circle.

Problem: find coordinates of B related to the given rotating angle.

Solution:
simply assume we're in top right quadrant, rotating anti-clockwise,
from quadrant1 to quadrant4.

From the givens:
hypotenuse c = SQRT(a^2 + b^2)
angle u = ASIN(a/c)
angle v = 90 - u - w

x1 = cSIN(v)
y1 = SQRT(c^2 - x1^2)

x2 = -y1, y2 = x1
x3 = -x1, y3 = -y1
x4 = y1, y4 = -x1

Example: a = 3, b = 4, w = 40 (degrees):
x1,y1 = 3.407, 14.608
x2,y2 = -14.608, 3.407
x3,y3 = -3.407, -14.608
x4,y4 = 14.608, -3.407
I'm a little confused. In the example you give c=5 and, since x1=3.407, sin(v)=0.6814 so v=42.9531 degrees and thus u=7.0469 degrees and sin(u)=0.1227 which is not a/c=0.6

I had rather just use a transformation of co-ordinate system [the 'even shorter way' I suggested earlier]. That is, if we rotate the system counterclockwise an angle \(\displaystyle \theta\), then the point in the new system (u,v) is just given by
u = x cos(\(\displaystyle \theta\)) - y sin(\(\displaystyle \theta\))
v = x sin(\(\displaystyle \theta\)) + y cos(\(\displaystyle \theta\))

So, first transform the co-ordinate system so that the three points of the triangle are (0,0), (a, 0), and (a, b) with (0,0) being the point of rotation counter-clockwise and the line segment from (0,0) to (a, b) being the hypotenuse of the right triangle of length c. Thus
c = \(\displaystyle \sqrt{a^2\, +\, b^2}\)

Given a rotation counterclockwise of angle \(\displaystyle \theta\), let
C = cos(\(\displaystyle \theta\))
and
S = sin(\(\displaystyle \theta\))
the point
(0,0) \(\displaystyle \to\) (0,0)
(a,0) \(\displaystyle \to\) (a C, a S)
(a,b) \(\displaystyle \to\) (a C - b S, a S + b C)
 
Before I answer (and prove you wrong) :rolleyes::

rotating angle measured from x=axis, right?

why transform the co-ordinate system, since point A is at origin?

why do you not agree that:
u = angleBAC = ASIN(a/c) = ASIN(3/5) = 36.8698 degrees?
I do agree that u = ASIN(a/c) as I understood what you have. What I was saying was, your equations and example has
x1 = c SIN(v)
so that for the given example
SIN(v) = x1/c = .3407/5 = .6814
which implies that
v ~ 0.763425 rads ~ 43.741 degrees
Another equation of yours is
v = 90 - u - w
or, turning things around and substituting 40 degrees for w
u = 90 - v - w ~ 90 - 43.741 - 40 = 6.2590 degrees ~ 0.1092 rads
which implies
sin(u) = 0.1092
This contradicts
u = ASIN(a/c) = ASIN(3/5) ~ 0.6435 rads ~ 36.8699 degrees
which would in turn imply
v = 90 - u - w ~ 90 - 36.8699 - 40 = 13.1301 degrees ~ 0.2292 rads
which would imply ...
 
Before I answer (and prove you wrong) :rolleyes::

rotating angle measured from x=axis, right?

why transform the co-ordinate system, since point A is at origin?

First, about transforming co-ordinate system, the transformation I mentioned was in regards to the original problem. I think your (x,y) and my (x,y) co-ordinate system are the same.

About the rotation angle, yes measured from the x axis positive counter-clockwise.

BTW: I might have gotten something turned around in the earlier post, i.e. the
u = x cos(\(\displaystyle \theta\)) - y sin(\(\displaystyle \theta\))
v = x sin(\(\displaystyle \theta\)) + y cos(\(\displaystyle \theta\))
equations. Have to go now, more later.

EDIT: Nope, my equations look right.
 
Last edited:
You're giving me a headache:rolleyes:

Do you get (x1,y1) = (~3.4074, ~14.1678) : yes or no?
That's all I want to know...
No.
a=3, b=4 \(\displaystyle \implies\) c = 5
u = asin(a/c) = asin(0.6) \(\displaystyle \implies\) u ~ 36.8699 degrees
w=40 degrees, v = 90 - u - w \(\displaystyle \implies\) v ~ 13.1301 degrees
x1 = c sin(v) ~ 5 * sin(13.1301 degrees) ~ 1.1358
y1 = \(\displaystyle \sqrt{c^2\, -\, x1^2}\) ~ 4.8692

Not sure what you mean when you refer to radians; as example:
SIN (40) = ~.74511
SIN(40*pi/180) = ~.64278 : I use this, but don't
show the pi/180)...should I?
Wolfram doesn't:
http://www.wolframalpha.com/input/?i=sin(40)=

I'm used to arguments of trig functions being expressed in radians unless specifically said otherwise. Maybe just a sign of old age;)
 
Top