Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → Whats the formula?
Whats the formula?
2004-01-16, 7:46 AM #1
I'm in my comp class and I need the formula that, if you have a triangle and all 3 points and their coordinates. How to get the 3 angles of the triangle.

------------------
I felt like destroying something beautiful.
"Nulla tenaci invia est via"
2004-01-16, 8:11 AM #2
I got 15min to figure this out and nothing on the web is helping...

------------------
I felt like destroying something beautiful.
"Nulla tenaci invia est via"
2004-01-16, 8:17 AM #3
2D or 3D coordinates?
Detty. Professional Expert.
Flickr Twitter
2004-01-16, 8:18 AM #4
Alright, i got a distance method that gets the distance between two points, now I can't remember how to get the angle.

------------------
I felt like destroying something beautiful.
"Nulla tenaci invia est via"
2004-01-16, 8:19 AM #5
2D

I have 3(x,y) points.

|\
|_\

like that, but of course points are user inputed.

------------------
I felt like destroying something beautiful.
"Nulla tenaci invia est via"
2004-01-16, 8:25 AM #6
Sides are a,b,c.
Angles are A,B,C (A is opposite a, B opposite b etc)

calculate A using the cosine rule (a^2=b^2+c^2-2bc.cosA) after working out the lengths of a, b and c

then use the sine rule (a/sinA = b/sinB = c/sinC) to work out the other angles.
Detty. Professional Expert.
Flickr Twitter
2004-01-16, 8:29 AM #7
Or as a simple algorithm:

(assuming a,b,c already calculated)

A = cos^-1((b^2+c^2-a^2)/2bc);

ratio = a/sinA;

B = sin^-1(b/ratio);
C = sin^-1(c/ratio);
Detty. Professional Expert.
Flickr Twitter
2004-01-16, 9:08 AM #8
/me has flashbacks of high school *shudder*

------------------
Truth is in the eye of the beholder.
Forum Rules
Little angel go away
Come again some other day
Devil has my ear today
I'll never hear a word you say
2004-01-16, 9:23 AM #9
Pythagorean Theorem
A^2 + B^2 = C^2
[http://forums.massassi.net/html/biggrin.gif]
Okay.. maybe not...

------------------
"So there I was completely naked and covered in tartar sauce..."
Ya know? Common sense? Not really that common...
2004-01-16, 10:10 AM #10
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Charlie:
Pythagorean Theorem
A^2 + B^2 = C^2
[http://forums.massassi.net/html/biggrin.gif]
Okay.. maybe not...
</font>


Yeah, that only works in right-angled triangles. Use the Cosine Law that Det posted.



------------------
BV's rendition of Titanic: Let's have sex. I won't let go. I don't need this stone.
The End.
~ Wolfy
That painting was a gift, Todd. I'm taking it with me.
2004-01-16, 11:30 AM #11
Cosine Rule > You.

------------------
Yeah, but you know what? This one, this one right here, this was my dream, my wish, and it didn't come true. So I'm takin' it back. I'm takin' 'em all back.
Hey, Blue? I'm loving the things you do. From the very first time, the fight you fight for will always be mine.

↑ Up to the top!